About 259,000 results
Open links in new tab
  1. mysqli or PDO - what are the pros and cons? - Stack Overflow

    Aug 17, 2008 · PDO is the standard, it's what most developers will expect to use. mysqli was essentially a bespoke solution to a particular problem, but it has all the problems of the other …

  2. mysql - PHP Fatal error: Class 'PDO' not found - Stack Overflow

    Aug 5, 2012 · extension=pdo.so extension=pdo_sqlite.so extension=pdo_mysql.so extension=sqlite.so If they are not present, simply add the lines above to the bottom of the …

  3. php - What is PDO & why should I use it? - Stack Overflow

    Aug 8, 2011 · People keep on mentioning that I should be using PDO in my PHP when dealing with MySQL, I have never heard of this before. What is PDO? How is it used and what are the …

  4. Are PDO prepared statements sufficient to prevent SQL injection?

    Add to that, some of the PDO drivers emulate prepared statements, and there's room for them to do so incorrectly (for instance, by half-assedly parsing the SQL).

  5. How a PDO Thread Lift Works, How Long It Lasts, Risks & More

    Apr 20, 2023 · Learn how a PDO thread lift works, what to expect, if it hurts, how long recovery takes, how long it lasts, if it’s dangerous, and more.

  6. mysql - PHP PDO: charset, set names? - Stack Overflow

    For completeness, there're actually three ways to set the encoding when connecting to MySQL from PDO and which ones are available depend on your PHP version. The order of preference …

  7. PHP PDO vs normal mysql_connect - Stack Overflow

    Sep 10, 2009 · 47 Should I use php PDO or normal mysql_connect to execute database queries in PHP? Which one is faster? One of the big benefits of PDO is that the interface is consistent …

  8. php - PDOException “could not find driver” - Stack Overflow

    I was behind a Symfony2 and Ubuntu. Pdo_mysql wasnt found ( [PDOException] could not find driver ). This solved the issue.

  9. php - Row count with PDO - Stack Overflow

    May 19, 2009 · There are many conflicting statements around. What is the best way to get the row count using PDO in PHP? Before using PDO, I just simply used mysql_num_rows. fetchAll is …

  10. php - How to properly set up a PDO connection - Stack Overflow

    Inside my sqlQuery - class, which extends my connect_pdo - class, I have a public function called getAreaName which handles the request to my database. Pretty neat I think. Works like a …