Game Development Reference
In-Depth Information
Now, you can open the HiScore.php file, and then you can change the first and second
lines of this code to match your database information as follows:
$link = mysql_connect("your host","your username","your
password") or die( mysql_error());
mysql_select_db("your database name") or die(mysql_error());
The following list explains the variables being used in the preceding code:
your host: This is the information in the Database Host in the preceding screen-
shot
your username : This is the information in the Database Username in the pre-
ceding screenshot
your password : This is the Database Password , which will be in your e-mail
your database name : This is the information in the Database Name in the pre-
ceding screenshot
Then, you can log in to your database ( www.phpmyadmin.co ) and click on your data-
base's name at the right-hand side of the web page. Then, you can create the table and
name it scores . Next, you need to put each value as shown in the following screenshot:
Search WWH ::




Custom Search