mysql_query
is not accepted anymore as a way to query databases. However a lot of new developers are still using it and every question that has mysql_query
in his example code will get a ton of comments regarding the use of this piece of old code.
I think putting up a warning message on the question page would be a good way to inform the asker he is using old (not recommended) code and keep the comment section clean.
mysql_query
is kinda unique in this way, because it does not invalidate the question itself. The use ofmysql_query
is almost never the cause of the problemmysql_query
function or if someone writes there own? Do you want them to get a warning that has nothing to do with them?