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.

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!';
}

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.