seany123 Posted October 9, 2008 Share Posted October 9, 2008 basically i just need this script to update certain values in my database. in my players database i want to update $money - 1000 and $city_id = 2. <?php include("lib.php"); define("PAGENAME", "Travel2"); ?> <? { $query = $db->execute("update `players` set `money`=?, `city_id`=? where `id`=?", array($player->money - 1000, $player->city_id = 2, $player->id)); } ?> ive tried this but it doesnt work. Also at the of the code i want it to Automatically direct to home.php Quote Link to comment Share on other sites More sharing options...
jordanwb Posted October 10, 2008 Share Posted October 10, 2008 Why do you have curly brackets? Quote Link to comment Share on other sites More sharing options...
iversonm Posted October 10, 2008 Share Posted October 10, 2008 post your execute function without we dont know whats wrong Quote Link to comment Share on other sites More sharing options...
jordanwb Posted October 10, 2008 Share Posted October 10, 2008 Plus can you be more specific with what's wrong. 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.