Jump to content
Larry Ullman's Book Forums

Chapter 9/no Database Selected


Recommended Posts

I am having trouble getting script 9.3 to function properly. I have followed the directions and tried variations of the script to see if I could get it to work, all of which have failed. When I run script 9.2, I get the blank white page. I assume this means that the connection was established properly. However, when I run script 9.3 my output is as follows:

 

System Error

You could not be registered due to a system error. We apologize for any inconvenience.

No database selected

Query: insert into users (first_name, last_name, email, pass, registration_date) values ('Jake', 'Carrie', 'examp@yahoo.com', SHA1('apple'), NOW())

 

I still have not been able to resolve the issue, which is unfortunate because this script is needed for the rest of the chapter. Any help would be greatly appreciated.

Link to comment
Share on other sites

  • 1 month later...

I'm having the same problem.  I checked the mysql_connect.php path and it should be ok.  Is there  another way to check the db connection from the registration.php file or from another file?

Link to comment
Share on other sites

 Share

×
×
  • Create New...