jcan18 Posted February 17, 2015 Share Posted February 17, 2015 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 ErrorYou could not be registered due to a system error. We apologize for any inconvenience. No database selectedQuery: 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 More sharing options...
Larry Posted February 18, 2015 Share Posted February 18, 2015 Do you have this line: require ('../mysqli_connect.php'); // Connect to the db. You should be able to echo out the value of $dbc to confirm that a connection exists. Link to comment Share on other sites More sharing options...
patg Posted April 15, 2015 Share Posted April 15, 2015 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 More sharing options...
Larry Posted April 15, 2015 Share Posted April 15, 2015 You should be able to echo out the value of $dbc to confirm that a connection exists. Link to comment Share on other sites More sharing options...
Recommended Posts