Re: SQL Injections
hey i keep getting this Fatal error: Call to undefined function: pettypes_dropdown() in /home/branncom/public_html/petadmin.php on line 125 but as far as i can ell everything is allright hers is the code im using function new_pet_form()
{
global $ir,$c;
print "<h3>Adding an item to the game</h3><form action='petadmin.php?action=newpetsub' method='post'>
Pet Name: <input type='text' name='petname' value='' />
Pet Desc.: <input type='text' name='petdesc' value='' />
Pet Type: ".pettypes_dropdown($c,'pettypes',$pettypesid['pettypes'],$pettypesname['pettypes'])."
Pet Buyable: <input type='checkbox' name='petbuyable' checked='checked' />
Pet Price: <input type='text' name='petbuyprice' />
Pet Sell Value: <input type='text' name='petsellprice' />
<input type='submit' value='Add Item To Game' /></form>";
}
can anyone help me