Hi I have just started to learn WAMP and have created a database with one table, i have created a php script to connect to DB and a simple form to enter info into the table however I get an error when I run the script, this outputs the error message in the script; couldnt select database from the code.
$connection = mysql_connect($host,$user,$password)
or die ("couldn't connect to server"
;
$db = mysql_select_db($database,$connection)
or die ("Couldn't select database"
;
I think the first part is ok but I dont know what is wrong the database exists and I have double checked all name and spellings i.e. username and database name ect.
Does anyone have any ideas as to what Im doing wrong/what going wrong?
Thanks in advance for any help you can give me.