You are here: about pdo and sqlite2 « PHP Programming Language « IT news, forums, messages
about pdo and sqlite2

Posted by Yarco on 11/06/61 11:27

I'm trying hard to use pdo and sqlite2 without php_pdo_sqlite.dll
extension.
The code:

$dsn = 'sqlite2::memory:';
$buf = <<<SQL
CREATE TABLE test
(
id INT,
name VARCHAR(20),
pass VARCHAR(20)
);
SQL;

try {
$pdo = new PDO($dsn);
$pdo->query($buf);
//...
} catch (PDOException $e) {
//...
}

print_r($pdo);

But i get nothing.
And the pdo_sqlite of php document seems wrong, it use
'sqlite2:memory:' to define $dsn. I get error when i do that.
Anyone have exp. on pdo and sqlite?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация