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>"; } ?> Quote Link to comment Share on other sites More sharing options...
seany123 Posted May 15, 2009 Author Share Posted May 15, 2009 oops silly me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.