bobafifi Posted September 24, 2016 Share Posted September 24, 2016 Hi Larry! Recently my hosting company started running PHP 5.6 and now I'm getting the following error for Script 13.7 User RegistrationAn error occurred in script '/home/example/public_html/includes/mysql_connect.php' on line 14:mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO insteadDate/Time: 9-24-2016 11:27:29 Can you please share what the fix is for this? Thanks! Link to comment Share on other sites More sharing options...
Larry Posted September 26, 2016 Share Posted September 26, 2016 Hey! You're using an old version of the extension for interacting with MySQL and need to use the more current extension, which is MySQLi. That book is 8 years old now, so a few things have changed. Cheers! Link to comment Share on other sites More sharing options...
bobafifi Posted September 27, 2016 Author Share Posted September 27, 2016 Thanks Larry. Has the Registration script been updated to MySQLi in a later edition of your book? If so, can you please tell me which version so I can get it? Thanks again! Link to comment Share on other sites More sharing options...
Larry Posted September 28, 2016 Share Posted September 28, 2016 Yes, the 4th edition of the book would have been updated. You can see the different code here: http://www.larryullman.com/downloads/phpmysql4_scripts.zip Link to comment Share on other sites More sharing options...
bobafifi Posted September 29, 2016 Author Share Posted September 29, 2016 Awesome! Thank you Larry! Link to comment Share on other sites More sharing options...
Recommended Posts