note 71180 deleted from function.sqlite-open by cmb

From: Date: Mon, 02 Nov 2020 15:01:54 +0000
Subject: note 71180 deleted from function.sqlite-open by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215748@lists.php.net to get a copy of this message
Note Submitter: ---- the above example dows not! work since sqlite_query() does not accept one argument, but only 2. so correct is: <?php if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) { sqlite_query($db,'CREATE TABLE foo (bar varchar(10))'); sqlite_query($db,"INSERT INTO foo VALUES ('fnord')"); $result = sqlite_query($db,'select bar from foo'); var_dump(sqlite_fetch_array($result)); } else { die ($sqliteerror); } ?>

« previous php.notes (#215748) next »