Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > about pdo and sqlite2
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 31st March 19:43
yarco
External User
 
Posts: 1
Default about pdo and sqlite2


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 do***ent seems wrong, it use
'sqlite2:memory:' to define $dsn. I get error when i do that.
Anyone have exp. on pdo and sqlite?
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666