look at this please

Discussion in 'MySQL' started by rodney2420, Feb 24, 2011.

  1. #1
    hi guys i have an arcade site and when im trying to embed a game its giving me an error
    i dont know if this the right section to post but i need some help
    if you can please say something that would be wonderfull the error its the next one

    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 'parent_url='; if (top_href) { var replacement = param + encodeURICom' at line 1

    thanks so much

    oh i just forgot im getting another error for my other arcade it looks very similar but this one its saying at line 8

    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 'parent_url='; if (top_href) { var replacement = param + encodeURICom' at line 8
    Query was INSERT INTO dd_games SET name='Billar', description='un juego de billar exelente', category='2', type='2', dateadded='1298597180', thumburl='', enabledcode='
     
    Last edited: Feb 24, 2011
    rodney2420, Feb 24, 2011 IP
  2. jkl6

    jkl6 Peon

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your query should be INSERT INTO dd_games VALUES('Billar', 'un juego de billar exelente', .....).
     
    jkl6, Feb 24, 2011 IP
  3. sacx13

    sacx13 Active Member

    Messages:
    438
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Is asyntax error in your HTML. You have there a Java script which should insert the top parent URL and this is not working. Show me the page and I will show you where the error is.

    Regarding what jkl6 told you about your insert: BOTH methods are correct.

    Regards
     
    sacx13, Feb 25, 2011 IP