I am trying to test out a PDO insert statement and for some really weird reason its not inserting the info and not giving me an error message.
I tried running a regular query (with out using prepared statements) and it works.. but this one is not doing any inserts and not giving me an error message.
If anyone can please help me resolve this I would really appreciate it. Thanks!
$msg_table_query = $db->prepare("INSERT INTO msg_messaes (sender_id,recipient_id,msg ) VALUES (:sender_id, :recipient_id, :msg"); $msg_table_query->execute([':sender_id' => 3, ':recipient_id' => 4, ':msg' => 'test']); var_dump($db->errorInfo());