For this you will have to use MySQL database where you can make database easily. Then just follow my code:
<?php
$link = mysql_connect('localhost', 'root', '') or die("Couldn't connect to the database.");
$dbname = mysql_select_db('your_database_name') or die("Couldn't select the database");
?>
The above code will work on local server, but when you will use web server, then use a username in case of 'root' and a password in case of this blank space ' '
0 comments:
Post a Comment