I'm working on my project, It is a online reservation. I use your DB.php to do any request to the database. I cannot figure-out on how I can get the last Input id on the server by using you library DB.php? I use "$id = $db->lastInsertId();" still get a 500 error. What modification I'll do on the DB.php?