
Define your database information:
* host="localhost" you don't have to change it. When it's on your computer or server it still be localhost
Username = mysqluser
Password = 123456
Database = test
$host="localhost";
$username="phpeasystep";
$password="1234";
$db_name="test";
mysql_connect("$host", "$username", "$password")or die("cannot connect to server");
mysql_select_db("$db_name")or die("cannot select db");
or
mysql_connect("localhost", "phpeaststep", "1234")or die("cannot connect to server");
mysql_select_db("test")or die("cannot select db");
Creating file config.php | |||
![]() | |||
|
No comments:
Post a Comment