Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
bobafifi

Mysql_Connect.php Now Getting Errors With Php 5.6

Recommended Posts

Hi Larry!

Recently my hosting company started running PHP 5.6 and now I'm getting the following error for Script 13.7

 

User Registration
An 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 instead
Date/Time: 9-24-2016 11:27:29

 

Can you please share what the fix is for this?

 

Thanks!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×