About 231,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 DBMS-specific …

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

    Aug 8, 2011 · PDO is an extension that is added to PHP so that its various functionalities are available in the language. It constitutes an abstraction interface of the database, that is to say that all of its …

  3. 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 charm So …

  4. 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 across …

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

    While this answer is probably correct and useful, it is preferred if you include some explanation along with it to explain how it helps to solve the problem. This becomes especially useful in the future, if …

  6. 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).

  7. 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 php.ini file and save it.

  8. How to enable the PDO driver for sqlite3 in php? - Stack Overflow

    The sqlite2 driver is older. PDO_SQLITE is a driver that implements the PHP Data Objects (PDO) interface to enable access to SQLite 3 databases. In PHP 5.1, the SQLite extension also provides a …

  9. What is the difference between bindParam and bindValue?

    Jul 24, 2009 · The answer is in the documentation for bindParam: Unlike PDOStatement::bindValue (), the variable is bound as a reference and will only be evaluated at the time that …

  10. PHP 7 RC3: How to install missing MySQL PDO - Stack Overflow

    Sep 23, 2015 · First, check if your php.ini has the extension enabled "php_pdo_mysql" and "php_mysqli" and the path of "extension_dir" is correct. If you need one of above configuration, then, you must …