I need a date. heh, just kidding, the title kinda called for it.
Anyway, I'm having a major issue here and my head is fried so that I can't think straight any more.
Here's my problem.
Attached to this post is an image of a table that has the holidays of the month. I can call them all out, but I can't emphasis the current holiday, and I want it to stay emphasised until the next holiday. These are some of the codes I used:
PHP Code:
$current_day = date("j");
$current_month = date("n");
$holiday = $row_current_holiday['ev_day'];
$name = $row_current_holiday['ev_name'];
if($current_day == $holiday){
echo "<b><i><u>$holiday - $name</u></i></b><br>";
}else{
echo "$holiday - $name<br>";
}
And this is the mysql command calling all the holidays:
PHP Code:
mysql_select_db($database_ifroggie, $ifroggie);
$query_current_holiday = "SELECT * FROM event WHERE ev_month = $current_month";
$current_holiday = mysql_query($query_current_holiday, $ifroggie) or die(mysql_error());
$row_current_holiday = mysql_fetch_assoc($current_holiday);
$totalRows_current_holiday = mysql_num_rows($current_holiday);
I tried alot of different methods, but I can't get it to work. Please, any help would be greatly appreciated.