< ?php
$connection = mysql_connect(localhost","user","password") or die ("Couldn't connect to the server!");
mysql_select_db("users", $connection) or die ("Couldn't connect to the database!");
I used the above code above to try and connect to my database but keep getting an error in line 2 where mysql_connect(localhost)----
I've typed in my localhost name correctly why won't it work?
please help this is my first day ever dealing with php and databases. thanks in advance.