Hacker News new | ask | show | jobs
by ocdtrekkie 2722 days ago
Can confirm. I've written one site with PDOs and a lot of sites with the old stuff. PDO is definitely a different feel to wrap around, and more resources on it would definitely be good.

For what it's worth though, my understanding is mysql_ functions are removed completely as of PHP 7. So that old documentation will just not work, rather than teaching people the least secure option of how to write their website.

1 comments

You're right, but you can just replace mysql_* with mysqli_* if you're so inclined.
that doesn't work.

mysql_query($sql, $link);

mysqli_query($link, $sql);