Glenskie Posted January 11, 2013 Share Posted January 11, 2013 i dont know how to fix this where is the error? $query = mysql_query ("SELECT * FROM photos ORDER BY id DESC LIMIT ".$queryStart.", 5" AND type="pic"); Quote Link to comment Share on other sites More sharing options...
Christian F. Posted January 11, 2013 Share Posted January 11, 2013 The tip lies in the syntax highlighting. Also, you should read a bit more up on the SELECT syntax, as what you got there doesn't make much sense. Quote Link to comment Share on other sites More sharing options...
The Letter E Posted January 14, 2013 Share Posted January 14, 2013 $query = mysql_query("SELECT * FROM photos WHERE type = 'pic' ORDER BY id DESC LIMIT ".$queryStart",5"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.