Mr Chris Posted January 8, 2007 Share Posted January 8, 2007 [code]select * from news_stories where section like '%$section%' AND unix_timestamp(published) <= unix_timestamp(NOW()) AND ( appeared LIKE '%$appeared%' )ORDER by id DESC") or die(mysql_error())[/code]Can anyone advise why to this does not work?ThanksChris Link to comment https://forums.phpfreaks.com/topic/33363-help-with-a-query/ Share on other sites More sharing options...
btherl Posted January 9, 2007 Share Posted January 9, 2007 What happens when you try to run it? Link to comment https://forums.phpfreaks.com/topic/33363-help-with-a-query/#findComment-156551 Share on other sites More sharing options...
fenway Posted January 10, 2007 Share Posted January 10, 2007 I assume you have the matching quote & paren somewhere... and why run unixtimestamp for no reason? Link to comment https://forums.phpfreaks.com/topic/33363-help-with-a-query/#findComment-157682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.