dniwebdesign
09-25-2004, 03:46 AM
I am having troubles with the below:
$year = date("Y");
$month = date("n");
$date = date("j");
$count=$count+1;
$date1=$row["date"];
$year1=$row["year"];
$month1=$row["month"];
if($month1=="1")
{ $month2="January"; }
else if($month1=="2")
{ $month2="February"; }
else if($month1=="3")
{ $month2="March"; }
else if($month1=="4")
{ $month2="April"; }
else if($month1=="5")
{ $month2="May"; }
else if($month1=="6")
{ $month2="June"; }
else if($month1=="7")
{ $month2="July"; }
else if($month1=="8")
{ $month2="August"; }
else if($month1=="9")
{ $month2="September"; }
else if($month1=="10")
{ $month2="October"; }
else if($month1=="11")
{ $month2="November"; }
else if($month1=="12")
{ $month2="December"; }
if($count <= $front_cols && $count==1){echo "";}
else if($count < $front_cols && $count > 1){echo "";}
else if($count==$front_cols){echo "";}
if($month1>=$month && $year1>=$year && $date1>=$date)
{
echo "<tr><td><font size='$font_size' face='$font_face'>".$month2." ".$date1.", ".$year1."</font></td>
<td><font size='$font_size' face='$font_face'>".$row["venu"]."</font></td>
<td><font size='$font_size' face='$font_face'>".$row["location"]."</font></td>
<td><font size='$font_size' face='$font_face'>".$row["time"]."</font></td>
<td><font size='$font_size' face='$font_face'>$".$row["tickets"]."</font></td>
</tr>";
}
else
{
echo "";
}
I only want it to show the things that are coming up into the future and today, not ones that have happened already. However it just doesn't seem to be working. Any help?
$year = date("Y");
$month = date("n");
$date = date("j");
$count=$count+1;
$date1=$row["date"];
$year1=$row["year"];
$month1=$row["month"];
if($month1=="1")
{ $month2="January"; }
else if($month1=="2")
{ $month2="February"; }
else if($month1=="3")
{ $month2="March"; }
else if($month1=="4")
{ $month2="April"; }
else if($month1=="5")
{ $month2="May"; }
else if($month1=="6")
{ $month2="June"; }
else if($month1=="7")
{ $month2="July"; }
else if($month1=="8")
{ $month2="August"; }
else if($month1=="9")
{ $month2="September"; }
else if($month1=="10")
{ $month2="October"; }
else if($month1=="11")
{ $month2="November"; }
else if($month1=="12")
{ $month2="December"; }
if($count <= $front_cols && $count==1){echo "";}
else if($count < $front_cols && $count > 1){echo "";}
else if($count==$front_cols){echo "";}
if($month1>=$month && $year1>=$year && $date1>=$date)
{
echo "<tr><td><font size='$font_size' face='$font_face'>".$month2." ".$date1.", ".$year1."</font></td>
<td><font size='$font_size' face='$font_face'>".$row["venu"]."</font></td>
<td><font size='$font_size' face='$font_face'>".$row["location"]."</font></td>
<td><font size='$font_size' face='$font_face'>".$row["time"]."</font></td>
<td><font size='$font_size' face='$font_face'>$".$row["tickets"]."</font></td>
</tr>";
}
else
{
echo "";
}
I only want it to show the things that are coming up into the future and today, not ones that have happened already. However it just doesn't seem to be working. Any help?