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'])); Link to comment https://forums.phpfreaks.com/topic/104015-posting-into-a-mysql-db/ 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 Link to comment https://forums.phpfreaks.com/topic/104015-posting-into-a-mysql-db/#findComment-532499 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.