bobafifi 1 Posted September 24, 2016 Report 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! Quote Link to post Share on other sites
Larry 428 Posted September 26, 2016 Report 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! Quote Link to post Share on other sites
bobafifi 1 Posted September 27, 2016 Author Report 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! Quote Link to post Share on other sites
Larry 428 Posted September 28, 2016 Report 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 Quote Link to post Share on other sites
bobafifi 1 Posted September 29, 2016 Author Report Share Posted September 29, 2016 Awesome! Thank you Larry! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.