I'm having some problems with PDO. Here's my code:
$db = new PDO('sqlite:main.db');
$db->exec("insert into stuff (name) values ('asfasdf');");
I don't get any errors, but the value isn't being inserted into the database. Selects work though, but deletes and inserts don't. What am I doing wrong?
$db = new PDO('sqlite:main.db');
$db->exec("insert into stuff (name) values ('asfasdf');");
I don't get any errors, but the value isn't being inserted into the database. Selects work though, but deletes and inserts don't. What am I doing wrong?












