Jump to content
MakeWebGames

.


gpo26

Recommended Posts

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 by newttster
Link to comment
Share on other sites

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;
}
Link to comment
Share on other sites

$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

Link to comment
Share on other sites

  • gpo26 changed the title to .

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...