Skip to content

Instantly share code, notes, and snippets.

@marcmartino
Created July 17, 2012 22:07
Show Gist options
  • Save marcmartino/3132467 to your computer and use it in GitHub Desktop.
Save marcmartino/3132467 to your computer and use it in GitHub Desktop.
my insert is not inserting
$stmt = $mysqli->prepare("INSERT INTO `Quizes` (`Name`, `Course ID`, `Session ID`, `User ID`) VALUES (?,?,?,?)");
error_log($stmt->error);
$stmt->bind_param('ssss',$quizOptions['name'], $quizOptions['classID'], $quizOptions['sessionID'], $_SESSION['user_ID']);
$stmt->execute();
$returnID = $mysqli->insert_id;
$stmt->close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment