+
-
open_db() or die('could not open
database');
sqlite_open($filename, $mode, &$error_message)
returns database handle, FALSE
if errorsqlite_query($db, $query)
returns result
handlesqlite_fetch_array($result)
returns next row as an
array, FALSE
if no more rowssqlite_exec($db, $query)
new SQLiteDatabase($filename)
$db->query($query)
$result->fetch()
Write the PHP code to create a new table through a database
handle $db
.
© 2007 Calvin College and Jeremy D.
Frens.
This work is licensed under a Creative
Commons Attribution-Noncommercial-Share Alike 3.0 United States
License.