I put the following code
result=mysql_query("SELECT postid, title, post, DATE_FORMAT(date_posted, '%e-%m-%Y')AS date_posted FROM post WHERE now() BETWEEN date_posted AND expire_date ORDER BY postid DESC");
...
...
$day=date("j");
$month=date("m")-1;
if($month==0) {$month=12;}
$year=date("Y");
$crucial_date=$day."-".$month."-".$year;
...
...
...
while($row=mysql_fetch_assoc($result)) {
...
....
....
if(($row['date_posted']>=$crucial_date)&&($crucial_date>=$date_before)) {echo "<hr>";}
....
$date_before=$row['date_posted'];
}
and the result is :
the <hr> is placed between 3-01-2003 and 7-01-2003 🙁🙁
I expected to get placed between 29-12-2003 and 3-01-2003
But when i uploaded this script on Tripod it didn't work. The <hr> wasn;t between 3-01-2003 and 7-01-2003 as in my localhost.
What occured this failure?