What should we do with questions using deprecated mysql_*
functions? Almost everyday some users post a question with PHP code using deprecated mysql_*
functions: every time, someone in the comments must tell them to use PDO
or mysqli_*
.
Should we decide a standard comment to post when this happens? Should this be automatized (for example, a bot that leaves the comments every time it finds a mysql_ function)?
This reminds me on how we used to post http://whathaveyoutried.com to every question showing lack of effort. Now this is banned and I don't think it is still considered good practice to ask "what have you tried" to those that clearly haven't tried anything.
Is the behavior of posting the PDO/mysqli comment going to be considered bad too?