Re: PHP + SQLite = tearing hairs..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Indeed, I was using bad driver. Took me some time, to get it, migrating from mysql (sqlite versions, pdo etc.).
So if anyone ever has problems with sqlite and PHP, the solution is PDO.

For the google spider:

Following http://www.php.net/manual/en/pdo.construct.php:
$db = new PDO('sqlite:filename.db');

Also it is misleading, that PDO does not output any errors, as mysql did.. The proper check of last error (even SQL one) is done by:

print_r($db->errorInfo());

..but that is another story.

Thank you for you suggestions. It finally works :)
[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux