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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...