How do I use PDO to delete the last row inserted (this was done in another class)?
I have this, but I don't know what else I'm supposed to do with it:
$pdo = new PDO("mysql:host=$db_host;dbname=$db_name;", $db_user, $db_password);
$stmt = $pdo->prepare('DELETE FROM Resources');
$stmt->execute();
After inserting a new record, you get the ID like this: