mysql_select_db() question/problem

wxdqz

New Member
I am having a problem using the mysql_select_db function. I have connected successfully to mysql with a mysql_connect() function but the select db keeps erroring out. Somehow I am not understanding something. In the line: $db = my_sql_select("testdb", $connection) of die ("Couldn't select database."); I always get Couldn't connect to database. Does the "testdb" have to exist already in mysql or will it be created with this statement if it does not exist? The books I have are very vague on this....
 
Back
Top