I have started to move me from using the typical outdated mysql to use the PDO extension.
Could someone helped me fix the following code? It has no error messages, but it will obviously not insert a new table in my database. the database is used, varchar, and key is also varchar.
$id = 1;
$used = '1x2';
$load = $get->prepare("INSERT INTO keys (key,used) VALUES (:id,:used)");
$load->bindValue(':id',$id, PDO::PARAM_STR);
$load->bindValue(':used',$used, PDO::PARAM_STR);
try {
$load->execute();
}catch(exception $e) {
echo 'Error';
echo errorhandle($e);
}