> //echo $images;
> $db = new PDO('sqlite: database.sqlite3');
>
> $con = sqlite_open('sqlite: database.sqlite3');
> if (!$con)
> {
> die('Could not connect: ' . mysql_error());
> }
why you first make a new db opject and then open an connection to the
database? new PDO sqlite already open an connection .. as i am right.
and why mysql_error() ?
>
> $db->query('sqlite: database.sqlite3', $con);
>
> $db->query ("INSERT INTO images (id, images, info, url)
> VALUES ('$i', '$images', '$info', '$url')");
>
> $db->query("DELETE FROM images WHERE id='$i'");
> }
AS i know, if you want to put images in your db you need blob columns and
these are supported in sqlite3. or i understand something wrong?
Artur Reilin
sqlite.yuedream.de
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users