The mysql extension is officially not recommended for writing new
code, so anyone using it should be informed of this fact. I think it
should consist of more than "don't use that," but at the very least
that should cause the questioner to want to know why.
http://php.net/intro.mysql
This issue is problematic for exactly the reason Salil demonstrates
above: "it's working." Great that in this case it hasn't been left at
that, but most will see it work and think they've "got it right."