I see a lot of answers on Stack Overflow that include deprecated functions, for example the mysql_query
function. The code is correct but the usage of a deprecated function shouldn't be encouraged.
Should those answers be voted down? Should I add comments to the answers and ask for a non-deprecated method to be used?