Good day. Please tell me who knows why this code does not work:
$db = new SQLite3("KOnATbl4.sqlite"); $db->exec('CREATE TABLE base (name STRING, city STRING, home INTEGER)'); $db->exec("INSERT INTO base VALUES ('John', 'Moscow', 12)"); $results = $db->query("SELECT name, city, home FROM base");
Nothing is added to the database ... And the following code (for working with the received data) does not work ... Added data to the manual via the SQlite Manager, everything worked ..