Thread: Php question
View Single Post
Old 03-02-2010, 08:13 PM  
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by sarettah View Post
<?php if(date('w',time())>=1 && date('w',time())<=4) {?>

Your template code here

<?php } ?>

should work.

Let me know how it goes
Why not just

<? if(date('w')>=1 && date('w')<=4) {?>

time() is redundant
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote