On 11 Jul 2011, at 1:41am, James_21th wrote: > I ran exactly the code you put below, but it only return: bool(false) > > <?php > try { > $dbh = new PDO('sqlite:db1.db'); > $result=$dbh->query("drop table if exists tbl2"); > $result=$dbh->query("create table tbl2 (one varchar(10),two varchar(10));"); > var_dump($result); > } > catch(PDOException $e) > { > print "Oops!\n"; > print 'Exception : '.$e->getMessage()."\n"; > } > ?>
Please specify a complete file path for your database file, and make sure that that folder can be written to by your web process. Probably easiest to make it globally writable just for testing. Simon. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users