hi im new to php but i have been following a web tutorial that lets me have a login system. In step three of the tutorial it says: Open dbc.php to edit mysql database name, user name and password.
i have opened the file and it comes up with: (i have all the files that i need for the tutorial saved on my computer, so ijust need to add the info in)
<?php
$dbname = 'phplogin';
$link = mysql_connect("localhost","root","") or die("Couldn't make connection.");
$db = mysql_select_db($dbname, $link) or die("Couldn't select database");
?>
Where do i put database username and passowrd?
i have opened the file and it comes up with: (i have all the files that i need for the tutorial saved on my computer, so ijust need to add the info in)
<?php
$dbname = 'phplogin';
$link = mysql_connect("localhost","root","") or die("Couldn't make connection.");
$db = mysql_select_db($dbname, $link) or die("Couldn't select database");
?>
Where do i put database username and passowrd?
