News for hackers. Stuff that matters.
Re:PHP Apprentice – An online, open-source book for learning... by ocdtrekkie on Friday January 11, 2019 @11:33AM (#18884621)
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.

Re:PHP Apprentice – An online, open-source book for learning... by evunveot on Friday January 11, 2019 @06:15PM (#18888134)
You're right, but you can just replace mysql_* with mysqli_* if you're so inclined.
Re:PHP Apprentice – An online, open-source book for learning... by mgkimsal on Sunday January 13, 2019 @09:21AM (#18896760)
that doesn't work.

mysql_query($sql, $link);

mysqli_query($link, $sql);