Re: PHP + SQLite = tearing hairs..

[email protected] ("RRybak")
Newsgroups php.install
Message-ID <[email protected]>
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 :)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.