Debug Mode-SQL Error: 1064

Discussion in 'Software' started by Ozdog, Nov 10, 2005.

  1. Ozdog

    Ozdog Private E-2

    Could someone please help me with this.

    An Error Occurred

    DEBUG MODE

    SQL 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 'AND topic_id = 393 LIMIT 1' at line 3

    SELECT rating FROM phpbb_rate_results WHERE user_id = AND topic_id = 393 LIMIT 1

    Line : 252
    File : functions_rate.php
     
  2. Kodo

    Kodo SNATCHSQUATCH

    there is no parameter being supplied for the user_id..
     
  3. Ozdog

    Ozdog Private E-2

    thanks, but what does that mean??
     
  4. Kodo

    Kodo SNATCHSQUATCH

    in file functions_rate.php there is a value that is supposed to be passed to the query.. that value "USER_ID" is missing.. what it means beyond that point, I can't tell other than it obviously is not working. If you can provide more background, perhaps I or someone else could assist you further.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds