PHP Classes

Deprecated function

Recommend this page to a friend!

      MySQL Database Operation  >  All threads  >  Deprecated function  >  (Un) Subscribe thread alerts  
Subject:Deprecated function
Summary:Deprecated function
Messages:3
Author:Vaidas Visk
Date:2015-04-11 13:35:28
 

  1. Deprecated function   Reply   Report abuse  
Picture of Vaidas Visk Vaidas Visk - 2015-04-11 13:35:28
You shouldn't use deprecated functions like mysql_connect, mysql_query and other mysql_* family functions. Use PDO or at least MySQLi.

I would recommend to follow some coding style standards like PSR-2 (more about: http://www.php-fig.org/psr/psr-2/), because I personally hate seeing true, false, null and other keywords in uppercase.

  2. Re: Deprecated function   Reply   Report abuse  
Picture of arif purwanto arif purwanto - 2015-04-11 13:49:55 - In reply to message 1 from Vaidas Visk
thanks before for your advice.
I'm a beginer in web programming and i just know that in PHP Framework have that's rule.
your advice is important input for me.
Because i hope in future i can grow bigger from website programming.

once again i say thank you for your advice. i'll make some revision with my class after i read carefully PHP Framework's rule.


  3. Re: Deprecated function   Reply   Report abuse  
Picture of Dave Smith Dave Smith - 2015-04-19 10:20:14 - In reply to message 2 from arif purwanto
I have just recently added a deprecated function checker which can be found here...

phpclasses.org/depcheck

It was created since things definitely got crazy for me when PHP deprecated the entire mysql extension.

Dave