I want retrieve the id of a inserted row in the database, but I don\'t know how to do this.
I tried to return using the SQL clause RETURNING id, but not
RETURNING id
You need to use:
$stmt = $db->prepare("SQL Query"); $stmt->execute(); $id = $db->lastInsertId();