How would I write the code to do
$Querym = "SELECT * FROM $TableName_n WHERE ("time()-"news_time) < 604800 && news_show = 1";
I am trying to retreive any news posted in the last 7 days and also make sure the news_show == 1. I tried serval way of setting it up but couldn't seem to get it right. Any help would be great, thanks a lot.