Jump to content

[SOLVED] why the second query isnt running??


seany123

Recommended Posts

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>";  
    }
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.