disregard this topic.. i slept on it and found out how to do it. ----- Original Message ----- From: "Sebastian" <sebastian@xxxxxxxxxxxxxxxxxxx> To: <php-general@xxxxxxxxxxxxx> Sent: Saturday, December 11, 2004 11:06 PM Subject: dynamic include() in while loop > this is a brain buster, at least for me. > i have a while loop (results from mysql) which display news articles. i want > to include() a file if there hasn't been a news article posted "today" > meaning after midnight 12am to 12pm midnight... but if there are articles > the articles would be echo'd before the include and the rest of the articles > below the include.. > > eg, > > Article (today) > Article (today) > include(); > More articles (not today) > > .. but if there are no Articles posted "today" it would show up as: > > include(); > Article > Article > > i want to know if this is possible, if so, can anyone give me an example? > the articles are dated in unix timestamp. > cheers > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php