Jump to content

Posting into a MySQL DB!!!


avatar.alex

Recommended Posts

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

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.