I am using code that I know works from previous pages I have developed, but for some reason the PHP won't connect to the DB and I am getting a "No database selected" error.
My coding is:
mysql_connect("localhost","user","password") or die ('Error: ' . mysql_error());
mysql_select_db ("name of database");
Is there a special naming format for the database?
My coding is:
mysql_connect("localhost","user","password") or die ('Error: ' . mysql_error());
mysql_select_db ("name of database");
Is there a special naming format for the database?