Re: i nd help with my item market
Very new and learning here so bear with me..... changed my item market page to read as previously posted this is the error I get:
Warning: Missing argument 1 for item_remove() in /home/bamaman/public_html/global_func.php on line 323
Warning: Missing argument 2 for item_remove() in /home/bamaman/public_html/global_func.php on line 323
Warning: Missing argument 3 for item_remove() in /home/bamaman/public_html/global_func.php on line 323
QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND inv_itmid=' at line 1
Query was SELECT * FROM inventory WHERE inv_userid= AND inv_itmid=
and this is line 321-325 on my global_func.php:
321. }
322. function item_remove($user, $itemid, $qty)
323. {
324. global $db;
325. $q=$db->query("SELECT * FROM inventory WHERE inv_userid={$user} AND inv_itmid={$itmid}");