gpo26 Posted February 3, 2013 Share Posted February 3, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 3, 2013 Share Posted February 3, 2013 (edited) paste up your code so we can view it Edited February 3, 2013 by illusions fat fingers Quote Link to comment Share on other sites More sharing options...
newttster Posted February 3, 2013 Share Posted February 3, 2013 (edited) which file is this for ? I believe he is talking about the staff_items file. It's not the best of solutions but what I did to by pass this was to enter them via phpMyAdmin. Then use the edit items to fix/add to the items once that was done ... basically the effects. Edited February 3, 2013 by newttster Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 3, 2013 Share Posted February 3, 2013 yep just noticed after i re-read it lol sorry gpo26 Quote Link to comment Share on other sites More sharing options...
gpo26 Posted February 3, 2013 Author Share Posted February 3, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
newttster Posted February 3, 2013 Share Posted February 3, 2013 What errors are you having when adding users? Cities? Could you be a little more specific? Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 3, 2013 Share Posted February 3, 2013 Thats okies in the staff_items.php look for these line.. usually you will get the error message if a POST isnt being sent to the INSERT or UPDATE example if(!isset($_POST['itmname']) || !isset($_POST['itmdesc']) || !isset($_POST['itmtype']) || !isset($_POST['itmbuyprice']) || !isset($_POST['itmsellprice'])) { print "You missed one or more of the fields. Please go back and try again.<br /> <a href='admin.php?action=newitem'>> Back</a>"; $h->endpage(); exit; } Quote Link to comment Share on other sites More sharing options...
gpo26 Posted February 3, 2013 Author Share Posted February 3, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 3, 2013 Share Posted February 3, 2013 we are here to help gpo26 all we need from you is io copy and paste your file so we can see the problems... Quote Link to comment Share on other sites More sharing options...
gpo26 Posted February 3, 2013 Author Share Posted February 3, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 4, 2013 Share Posted February 4, 2013 ok post the file that has the problem just the adding of items part Quote Link to comment Share on other sites More sharing options...
gpo26 Posted February 4, 2013 Author Share Posted February 4, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 4, 2013 Share Posted February 4, 2013 do you have MSN or SKYPE Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 4, 2013 Share Posted February 4, 2013 SKYPE: illusions2142 MSN : [email protected] Quote Link to comment Share on other sites More sharing options...
Djkanna Posted February 4, 2013 Share Posted February 4, 2013 $itmname = (isset($_POST['itmname']) && preg_match( "/^[a-z0-9_]+([\\s]{1}[a-z0-9_]|[a-z0-9_])+$/i", $_POST['itmname'])) ? strip_tags($db->escape($_POST['itmname'])) : ''; With: $itmname = (isset($_POST['itmname']) && preg_match( "/^[a-z0-9_]+([\s]{1}[a-z0-9_]|[a-z0-9_])+$/i", $_POST['itmname'])) ? strip_tags($db->escape($_POST['itmname'])) : ''; See more Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.