I am trying to use PDO Insert statement in the following manner (it's not working though..)
$db = new PDO("mysql:host=localhost;dbname=XXXXX","XXXX","");
$query= "INSERT INTO tableS VALUES ("475","1111","XXXY","PREQ","XX");
$result= $db->query($query);
$result -> closeCursor();
$db=null;
What am I doing wrong? I've ensured the entries are correct, am quite new to PDO.