avatar.alex Posted May 4, 2008 Share Posted May 4, 2008 Hello im am trying to add something to my game and I got stuck. I am trying to get it so When I push Get Item it will generate a item that is between 1-5 gold randomly....but i got this far in my quest to do so...could someone point me in the right direction!!! if ($_POST['getitem']) { $query = $db->execute("select `id`, `name`, `price` from `blueprint_items` where `id`=?", array($_GET['id'])); Quote Link to comment Share on other sites More sharing options...
jsladek Posted May 4, 2008 Share Posted May 4, 2008 take a look @ http://us3.php.net/rand 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.