Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getScore($setone,$settwo,$getChallengerScore,$getOpponentScore,$fileChallengerData,$fileOpponentData,$matchID)
- {
- try
- {
- $stmt = $this->db->prepare("UPDATE matches SET `winner` = :setone, `looser` = :settwo, `winner_score` = :getChallengerScore, `looser_score` = :getOpponentScore, `challenger_blob` = :fileChallengerData, `opponent_blob` = :fileOpponentData WHERE `id` = :matchID");
- $stmt->bindParam(':setone', $setone);
- $stmt->bindParam(':settwo', $settwo);
- $stmt->bindParam(':getChallengerScore', $getChallengerScore);
- $stmt->bindParam(':getOpponentScore', $getOpponentScore);
- $stmt->bindParam(':fileChallengerData', $fileChallengerData);
- $stmt->bindParam(':fileOpponentData', $fileOpponentData);
- $stmt->bindParam(':matchID', $matchID);
- $stmt->execute(array(
- ':setone' => $setone,
- ':settwo' => $settwo,
- ':getChallengerScore' => $getChallengerScore,
- ':getOpponentScore' => $getOpponentScore,
- ':fileChallengerData' => $fileChallengerData,
- ':fileOpponentData' => $fileOpponentData,
- ':matchID' => $matchID
- ));
- var_dump($stmt);
- return $stmt;
- }
- catch(PDOException $e)
- {
- echo $e->getMessage();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement