Invalid Query Error In Line One?

Discussion in 'Databases' started by Dean_Saliba, Jan 4, 2011.

  1. #1
    Hiya,

    I'm having a problem with my database.

    I'm trying to set up an arcade site. All seems well until I click on an actual game to play and I receive this error message.

    I'm sure it is something really simple.

    Should I post my database or will the error be enough to know what the problem is? :)

    Would appreciate the help. :)
     
    Dean_Saliba, Jan 4, 2011 IP
  2. krishmk

    krishmk Well-Known Member

    Messages:
    1,376
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    185
    #2
    Try this
    UPDATE `games` SET `playcount` = (`playcount`+1) WHERE `id` = '$row[id]';
    PHP:
     
    krishmk, Jan 4, 2011 IP