Commit d9666d53 authored by William Paul Liggett's avatar William Paul Liggett

Admin Page: Fixed an SQL query.

parent 1cd586b8
......@@ -73,7 +73,7 @@ $successful_insert = $statement->execute(); // true or false
if($successful_insert) {
// Finds the new surrogate key (sk) from the recently inserted row.
$sql = "SELECT sk WHERE subject_id=:subject_id, test_condition=:test_condition, login_code=:login_code";
$sql = "SELECT sk FROM test_control WHERE subject_id=:subject_id AND test_condition=:test_condition AND login_code=:login_code";
$statement = $pdo->prepare($sql);
$statement->bindValue(":subject_id", $subject_id, PDO::PARAM_INT);
$statement->bindValue(":test_condition", $test_condition, PDO::PARAM_INT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment