Need someone to help me with this script...

Discussion in 'Databases' started by szhang, Oct 21, 2009.

  1. #1
    So this is my script that i got someone to install and it has
    some movies on there as well.

    I just need someone that i well aware of this script and can help me out with it.

    One this is that i get this error everytime i try to go to the second page of the editing for my movies.

    "Database error: Invalid SQL: select C_Title from tbl_movie where PK_MovieID =
    MySQL Error: 1064 (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 '' at line 1)
    Session halted."


    Thanks
     
    szhang, Oct 21, 2009 IP
  2. rocco2004

    rocco2004 Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's hard to understand what could be going wrong based on provided information. I guess that could be an error in the mysql statement or some invalid characters. The sql script is concatenated, so it's not enough to determine what could be wrong. Do you know what function you are calling? Full sql statement from the code could be helpful too?
     
    rocco2004, Oct 21, 2009 IP
  3. rogan4567

    rogan4567 Active Member

    Messages:
    103
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    55
    #3
    We can only guess without seeing the entire query, and that might not even be enough.

    My guess is that PK_MovieID variable is missing or maybe you have one too many (or one too few) single quotes ' in the statement.
     
    rogan4567, Oct 22, 2009 IP
  4. hippo32

    hippo32 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    tell me exact prob...may b i can fix it for u...m good at SQl
     
    hippo32, Oct 25, 2009 IP