seany123 Posted May 15, 2009 Share Posted May 15, 2009 can anyone tell me why the second query here isn't running <?php { //Update player (Success [NO EXP]) $query = $db->execute("Update `players` set `exp`=?, `crimes_sucess`=?, `nerve`=? where `id`=?", array(0, $player->crimes_sucess + 1, $player->nerve - $nerveloss, $player->id)); //update enemy (the loser) $query = $db->execute("update `players` set `prison`=?, `id`=?", array(0, $enemy->id)); //Add log message for enemy $logmsg = "<a href=\"profile.php?id=" . $player->username . "\">" . $player->username . "</a> busted you out of prison!2"; addlog($enemy->id, $logmsg, $db); //Add output for the player echo "You successfully busted " . $enemy->username . " out of prison.2"; echo "<br><br>"; echo "<a href=\"home.php\">Back</a>"; } ?> Link to comment https://forums.phpfreaks.com/topic/158323-solved-why-the-second-query-isnt-running/ Share on other sites More sharing options...
seany123 Posted May 15, 2009 Author Share Posted May 15, 2009 oops silly me. Link to comment https://forums.phpfreaks.com/topic/158323-solved-why-the-second-query-isnt-running/#findComment-835032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.