News for hackers. Stuff that matters.
Re:PHP to deprecate MySQL extension by pak on Friday July 15, 2011 @12:11PM (#2767942)
Perhaps; to avoid any verbosity for any real code I wrap PDO in something like IdiORM and Paris (http://j4mie.github.com/idiormandparis/) or my fork called Dakota (https://github.com/powerpak/dakota). My point was that you can write a PHP + MySQL toy example with PDO that is just as simple as the mysql_query() garbage but is a million times safer in the long run.
Re:PHP to deprecate MySQL extension by eropple on Friday July 15, 2011 @12:18PM (#2767970)
Oh, totally, don't get me wrong. For a one-off query I might write what you did and think nothing of it. It's vastly better than the alternative.