SERVER[''DOCUMENT_ROOT'']."/../library2.db"; // open database file $handle = sqlite_open($db) or die("Could not open database"); // create database sqlite_query($handle, "CREATE TABLE books (id INTEGER PRIMARY KEY, title VARCHAR(255) NOT NULL, author VARCHAR(255) NOT NULL)") or die("Error in query: ".sqlite_error_string(sqlite_last_error($handle))); // insert records sqlite_query($handle, "INSERT INTO books (title, author) VALUES (''The Lord Of The Rings'', ''J.R.R. Tolkien'')") or die("Error in query: ".sqlite_error_string(sqlite_last_error($handle))); sqlite_query($handle, "INSERT INTO books (title, author) VALUES (''The Murders In The Rue Morgue'', ''Edgar Allan Poe'')") or die("Error in query: ".sq