Jump to content
MakeWebGames

Recommended Posts

Posted

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 'jrID=2' at line 1

Query was UPDATE jobranks SET jrNAME='Brakes Tech', jrJOB = 1, jrPAY= 400, jrIQG=10, jrLABOURG=10, jrSTRG=8, jrIQN=100, jrLABOURN=150, jrSTRN=220WHERE jrID=2

any idea why? i've editted NOTHING in the scripts for jobs etc.

  • 9 months later...
Posted

Re: [V2] Edit Jobs Error...

well this is a very simple fix

i know this is an late update but i figured if someone else had this issue i would let you know

see where it is "222where jrID=2"

well find find this

$db->query("UPDATE jobs SET jNAME='{$_POST['jNAME']}', jDESC='{$_POST['jDESC']}', jOWNER='{$_POST['jOWNER']}', jFIRST={$_POST['jFIRST']}WHERE jID={$_POST['jID']}");

 

and replace it with this

$db->query("UPDATE jobs SET jNAME='{$_POST['jNAME']}', jDESC='{$_POST['jDESC']}', jOWNER='{$_POST['jOWNER']}', jFIRST={$_POST['jFIRST']} WHERE jID={$_POST['jID']}");

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...