It's not the first time... It has recurring for almost every MySQL question where the asker posting mysql query with
mysqli_* as happening in this question.
My question is, is this really effective? Well, we were all a newbie at one point and there will be a time where we will change or move from that
mysql_* even without people saying so. And the usage of
mysql_* is not dangerous as the asker might be someone who is learning from an outdated source, meaning using
mysql_* would help them understanding the code much faster.
Bobby learns MySQL from certain site (http://www.tizag.com/mysqlTutorial/mysqlsyntax.php).
Bobby, who knows nothing about PHP, uses
mysql_*function as it was written on the webpage.
Now, what if you, as Bobby, are asked to learn with MySQLi? That would means you have to convert each query into
mysqli_* (Yes, I know... It's just a matter of adding i ). But then the code can be very messy as there can be some parts which Bobby uses
So far, my teaching techniques are let the student uses
mysql until they are ready enough to know what
mysql_* stands for and then let them know (which some of them knows by themself), that they can use
mysqli, and stuffs