Array issue, help needed plz
Posted: Fri Apr 06, 2007 11:42 am
I have this
it all works great as it is but I need to somehow change the number 2 on the array for the number from that database which is stored in a vriable called $appointment_day
I have tried allsorts with no luck..
Anyone got any ideas?
thanks
Code: Select all
$myName = $_SESSION['user']['firstname'] . " " . $_SESSION['user']['lastname'];
include_once("../connection.php");
$calendarAppointments = mysql_query("SELECT id, name, appointment_day, appointment_month, appointment_year FROM currentappointments WHERE name = '$myName'")or die(mysql_error());
while ($calendarList = mysql_fetch_array($calendarAppointments))
{
extract($calendarList);
}
$time = time();
$today = date('j',$time);
$days = array(
2=>array('/calendar_day.php?id='.$id.'','linked-day'),
$today=>array(NULL,NULL,'<span class="warning">'.$today.'</span>'));
echo generate_calendar(date('Y', $time), date('n', $time), $days);
I have tried allsorts with no luck..
Anyone got any ideas?
thanks