//////first i build the datbses connection script include
/////</php include 'application.php'?>//vars
<?php
$phostname = "localhost"; //pws ip machine
$shostname = "localhost"; //svet ip machine
$chostname = "localhost"; //crypto ip machine
$masterlogin = "masterlogin"; //master sql username
$masterpassword = "master password"; //master
$databaselucky = "luckylenny"; //luckydatabase
$databasegames = "games"; //gameslobbydatabase
$databaselobby = "lobby" //lobbydatabase
$databasecrypto = "crypto"
$odbcdriver "SQL Server"
>
//////first i build the datbses connection script include
///// require_once('connection4.php')/////first job check all the mysql databases
/////test connect to gamespokerlobby database
<?php
$gamescon = @mysqli_connect('$shostname', '$masterlogin', '', '$databasegames');
if (!$gamescon) {
echo "Error: "games . mysqli_connect_error();
exit();
}
echo 'Connected to MySQL games';
/////test connect to luckylenny database
$luckycon = @mysqli_connect('$shostname', '$masterlogin', '', '$databaselucky');
if (!$luckycon) {
echo "Error: "lucky . mysqli_connect_error();
exit();
}
echo 'Connected to MySQL lucky database ';
/////test connect to Cryptodatabase
$cryptocon = @mysqli_connect('$schostname', '$masterlogin', '', '$databasecrypto');
if (!$cryptocon) {
echo "Error: "crypto . mysqli_connect_error();
exit();
}
echo 'Connected to MySQL crypto database ';
>
/////next job check all the mmsql database
/////we will ad this later
/////for this to work i minght have to install php5.6 mmsql dll driver
/////
/////next job is do grab some basic infor from a cell in the databases eg credits
/////
<?php
$cryptocon = @mysqli_connect('$chostname', '$masterlogin', '', '$databasecrypto');
if (!$cryptocon) {
echo "Error: "crypto . mysqli_connect_error();
exit();
}
$cryptocashvalue = "SELECT cash FROM users WHERE userId=$username";
echo $cashvalue
$gamescon = @mysqli_connect('$shostname', '$masterlogin', '', '$databasegames');
if (!$gamescon) {
echo "Error: "crypto . mysqli_connect_error();
exit();
}
$cashvalue = "SELECT cash FROM users WHERE userId=$username";
echo $cryptocashvalue
$luckycon = @mysqli_connect('$shostname', '$masterlogin', '', '$databasegames');
if (!$luckycon) {
echo "Error: "crypto . mysqli_connect_error();
exit();
}
$luckycashvalue = "SELECT cash FROM users WHERE userId=$username";
echo $luckycashvalue
>
/////
/////next job is to build a button to transfair credit if available between the databases of the users
/////
//////first i build the datbses connection script include
/////</php include 'application.php'?>//vars
<?php
$phostname = "localhost"; //pws ip machine
$shostname = "localhost"; //svet ip machine
$chostname = "localhost"; //crypto ip machine
$masterlogin = "masterlogin"; //master sql username
$masterpassword = "master password"; //master
$databaselucky = "luckylenny"; //luckydatabase
$databasegames = "games"; //gameslobbydatabase
$databaselobby = "lobby" //lobbydatabase
$databasecrypto = "crypto"
$odbcdriver "SQL Server"
>
//////first i build the datbses connection script include
///// require_once('connection4.php')/////first job check all the mysql databases
/////test connect to gamespokerlobby database
<?php
$gamescon = @mysqli_connect('$shostname', '$masterlogin', '', '$databasegames');
if (!$gamescon) {
echo "Error: "games . mysqli_connect_error();
exit();
}
echo 'Connected to MySQL games';
/////test connect to luckylenny database
$luckycon = @mysqli_connect('$shostname', '$masterlogin', '', '$databaselucky');
if (!$luckycon) {
echo "Error: "lucky . mysqli_connect_error();
exit();
}
echo 'Connected to MySQL lucky database ';
/////test connect to Cryptodatabase
$cryptocon = @mysqli_connect('$schostname', '$masterlogin', '', '$databasecrypto');
if (!$cryptocon) {
echo "Error: "crypto . mysqli_connect_error();
exit();
}
echo 'Connected to MySQL crypto database ';
>
/////next job check all the mmsql database
/////we will ad this later
/////for this to work i minght have to install php5.6 mmsql dll driver
/////
/////next job is do grab some basic infor from a cell in the databases eg credits
/////
<?php
$cryptocon = @mysqli_connect('$chostname', '$masterlogin', '', '$databasecrypto');
if (!$cryptocon) {
echo "Error: "crypto . mysqli_connect_error();
exit();
}
$cryptocashvalue = "SELECT cash FROM users WHERE userId=$username";
echo $cashvalue
$gamescon = @mysqli_connect('$shostname', '$masterlogin', '', '$databasegames');
if (!$gamescon) {
echo "Error: "crypto . mysqli_connect_error();
exit();
}
$cashvalue = "SELECT cash FROM users WHERE userId=$username";
echo $cryptocashvalue
$luckycon = @mysqli_connect('$shostname', '$masterlogin', '', '$databasegames');
if (!$luckycon) {
echo "Error: "crypto . mysqli_connect_error();
exit();
}
$luckycashvalue = "SELECT cash FROM users WHERE userId=$username";
echo $luckycashvalue
>
/////
/////next job is to build a button to transfair credit if available between the databases of the users
/////