2 ms·
I mean, PDO wasn't great (in contrast to perl's DBI which was pretty good and offered parameterized queries even if the underlying interface didn't), so it made
by toast0 5y ago
I mean, PDO wasn't great (in contrast to perl's DBI which was pretty good and offered parameterized queries even if the underlying interface didn't), so it made sense to prefer mysql_query. But mysql_query didn't do parameters, and mysqli did, but only it you ran a new enough version of MySQL.
I wouldn't call it a language failure per se, but a problem with the libraries that shipped with the language. That distinction may not make a difference.
Bad examples that stuck around don't help either, of course.