Jump to content
MakeWebGames

Leu

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Leu's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Mass give mod ok will try it out ok got that part working but now when accessing the form, i can see all the fields but at the top of the form it is showing this error Warning: Wrong parameter count for mysql_query() in /home/leu/public_html/admin.php on line 906 so how do i set the query to all user
  2. I am using MC Code Lite, and am trying to build a mass give mod for admins only. And I keep getting error "Parse error: syntax error, unexpected '<' in /home/leu/public_html/admin.php on line 905 could someone reveiw this code and tell me what I am not seeing.   function mass_item_give() { global $ir,$c; <form action='admin.php?action=giveitemsub' method='post'> All Users "mysql_query("SELECT * FROM users ",$c,'user')." Item: ".item_dropdown($c,'item')." Quantity: <input type='text' name='qty' value='1' /> <input type='submit' value='Mass Item Give' /></form>"; } function mass_item_submit() { global $ir,$c; mysql_query("INSERT INTO inventory VALUES('',{$_POST['item']},{$_POST['user']},{$_POST['qty']})",$c) or die(mysql_error()); print "You gave {$_POST['qty']}of item ID {$_POST['item']} to all users."; }   any help would be great
×
×
  • Create New...