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"); Link to comment https://forums.phpfreaks.com/topic/272999-some-thing-is-wrong-very-wrong/ 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. Link to comment https://forums.phpfreaks.com/topic/272999-some-thing-is-wrong-very-wrong/#findComment-1404890 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"); Link to comment https://forums.phpfreaks.com/topic/272999-some-thing-is-wrong-very-wrong/#findComment-1405641 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.