Skip to content

Commit

Permalink
Remove php close and fix Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sciuridae0603 authored Aug 19, 2016
1 parent 0174768 commit b237137
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
2 changes: 0 additions & 2 deletions answer.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,3 @@
$updatenext->bindParam(':user',$tguser,PDO::PARAM_INT);
$updatenext->execute();
}

?>
2 changes: 0 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@
ALTER TABLE question ADD UNIQUE (id);
ALTER TABLE qalist ADD UNIQUE (user);";
$db->exec($setupuuid);

?>
1 change: 0 additions & 1 deletion question.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
$TempArray = JSON_Decode($Object2->answers);
$Object2->answers = $TempArray;
echo JSON_Encode($Object2);
?>
9 changes: 4 additions & 5 deletions start.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
//INSERT user Table
$userInsert = $db->prepare("INSERT IGNORE INTO `user` (user,rightanswer,wronganswer) VALUES (:user,:ra,:wa)");
$userInsert->bindParam(':user',$tguser,PDO::PARAM_INT);
$userInsert->bindParam(':ra',$a,PDO::PARAM_INT);
$userInsert->bindParam(':wa',$a,PDO::PARAM_INT);
$userInsert->bindParam(':ra',$PDONumber0,PDO::PARAM_INT);
$userInsert->bindParam(':wa',$PDONumber0,PDO::PARAM_INT);
$userInsert->execute();

//INSERT qalist
Expand All @@ -45,7 +45,6 @@
$userqalist = $db->prepare("INSERT IGNORE INTO `qalist` (user,list,now,next) VALUES (:user,:array,:c,:n)");
$userqalist->bindParam(':user',$tguser,PDO::PARAM_INT);
$userqalist->bindParam(':array',$encodearray,PDO::PARAM_STR);
$userqalist->bindParam(':c',$b,PDO::PARAM_INT);
$userqalist->bindParam(':n',$c,PDO::PARAM_INT);
$userqalist->bindParam(':c',$PDONumber1,PDO::PARAM_INT);
$userqalist->bindParam(':n',$PDONumber2,PDO::PARAM_INT);
$userqalist->execute();
?>
2 changes: 0 additions & 2 deletions user_info.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@
$UserInfo->execute();
$Object = $UserInfo->fetchObject();
echo JSON_Encode($Object);

?>

0 comments on commit b237137

Please sign in to comment.