I'm trying to insert in to a database using PDO.
Here is my code:
$SQLinsert = $odb->prepare("INSERT INTO `sites` VALUES(NULL, :site, :username)");
$SQLinsert -> execute(array(':site' => $site, ':username' => $user));
I added the PDO error reporting and I get this error:
Array ( [0] => 00000 [1] => [2] => )