I already have the mysql database made, I just need to connect php to mysql locally but I don't know the php commands for that.
cheers
$server = 'localhost';
$user = 'myUser';
$pass = 'myPass';
$dbname = 'MyDatabase';
$con = mysql_connect($server, $user, $pass) or die("Can't connect");
mysql_select_db($dbname);
The following contains a pretty good example: http://ca3.php.net/manual/en/mysql.examples-basic.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With