Jump to content

Question on PHP MySQL: Deprecated as of PHP 5.5.0


php_newbie05

Recommended Posts

Hi all.

 

I am in the process of creating a basic website with php. I am working on a login and password page and someone in another forum told me I should stop using mySQL.

 

My web host company is GoDaddy.com and the web hosting plan uses PHP 5.3.

 

What should I do? Should I edit my login and password page to mySQLi now?

 

Thank you in advance.

Edited by php_newbie05
Link to comment
Share on other sites

http://us3.php.net/manual/en/mysqlinfo.api.choosing.php

 

You can check godaddy support or run this:

if(class_exists('mysqli')) {
    echo 'mysqli installed!';
} else {
     echo 'mysqli NOT installed!';
}
if(class_exists('pdo')) {
    echo 'pdo installed!';
} else {
     echo 'pdo NOT installed!';
}
Edited by AbraCadaver
Link to comment
Share on other sites

They're referring to the original MySql extension - the functions starting with "mysql_" - and they're right, you shouldn't be using it now. As of PHP5.5 it will be deprecated, and completely removed in a future version. Given you're creating a new website though, you can just use MySQLi or PDO from the start.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.