setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $name = $db->quote($name); $sid = $db->quote($sid); $section = $db->quote($section); $hw = $db->quote($hw); $db->query("INSERT INTO submission (studentname, studentid, section, assignment, timestamp) VALUES ($name, $sid, $section, $hw, NOW());"); ?>
Your code was received, thanks! The submission was logged in our database.
Here are all submissions we have received so far: