Results 1 to 5 of 5

Thread: SQL Syntax Error

  1. #1
    Join Date
    May 2007
    Location
    Carson
    Posts
    88

    Default SQL Syntax Error

    ERROR: Unable to execute query

    SELECT * FROM video WHERE type='public' AND active=1 AND approve=1 ORDER BY addtime DESC LIMIT 0,

    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
    How do I fix it?

    Thank you
    Lying like Stealing

  2. #2
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: SQL Syntax Error

    I don't know if this matters, but try putting single quotes around the numbers like this (and anywhere else single or regular quotes, commas and junk like that belong):

    Code:
    WHERE type = 'public' AND approve = '1' AND active= '1'
    I know from experience if you miss so much as one tiny little comma or a single quote, things blow up.
    If it's not fun, stop doing it!

  3. #3

    Default Re: SQL Syntax Error

    Quote Originally Posted by grynmoors
    things blow up.
    Which is why I like to have someone else start my computer when I have been working on the web site. :mrgreen:
    This member is now known as Sitting Out

  4. #4
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: SQL Syntax Error

    :lol:
    If it's not fun, stop doing it!

  5. #5

    Default Re: SQL Syntax Error

    ffmpeg-php is not installed with GD support.

Similar Threads

  1. Recommend Video SQL Syntax Error
    By Foxxy in forum Bug Reports
    Replies: 1
    Last Post: 01-14-2009, 05:06 PM
  2. sql syntax error
    By jasonb in forum Installation Support
    Replies: 5
    Last Post: 11-13-2007, 03:57 PM
  3. Parse error: syntax error, unexpected $end in
    By blogmaster2003 in forum Fixed Bugs
    Replies: 2
    Last Post: 06-27-2007, 10:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •