this is my code now how do i make it so when i enter information into my sqldatabase it will underline the day number and make it a link? [code] // How many days are in the current month $Days_In_Month = cal_days_in_month(CAL_GREGORIAN, date("m"), date("Y")); // Gets the Current day, day with 1st 2nd etc, day name, year (2004), month, // month name $Current_Day = date("d"); $Current_Day_S = date("dS"); $Current_Day_Name = date("l"); $Current_Year = date("Y"); $Current_Month = date("m"); $Current_Month_Name = date("F"); // Get the offset of the first day of the month $First_Day_Of_Month = date("w", mktime(0, 0, 0, $Current_Month, 1, $Current_Year)); // Set the day names $Days_Array = array(); $Days_Array[] = "Sunday"; $Days_Array[] = "Monday"; $Days_Array[] = "Tuesday"; $Days_Array[] = "Wednesday"; $Days_Array[] = "Thursday"; $Days_Array[] = "Friday"; $Days_Array[] = "Saturday"; // For each of the Day Names, print em out $Day_Names = ""; foreach ($Days_Array as $x => $y) { $Day_Names .= '<td align="center" bgcolor="#ADADAD" width="14.28%">' . $y . '</td>'; } // Spacers for the offset of the first day of the month $Cal_Weeks_Days = ""; $i = $First_Day_Of_Month + 1; if ($First_Day_Of_Month != "0") { $Cal_Weeks_Days .= '<td colspan="' . $First_Day_Of_Month . '"> </td>'; } // Cal Days - The first day is 1, default with PHP is 0, so lets set it to 1 $Day_i = "1"; $ii = $i; for ($i; $i <= ($Days_In_Month + $First_Day_Of_Month);$i++) { // $i is our color variable - Alternate row colors: if ($i % 2) { $color = '#0000FF'; } else { $color = '#0000FF'; } // If the current day is sunday, make sure a new row gets set if ($ii == 8) { $Cal_Weeks_Days .= "</tr><tr>"; $ii = 1; } // If the day is the current day, highlight it with a special color if ($Current_Day == $Day_i) { $Extra = 'bgcolor="#FF0000"'; } else { // Alternate row colors $Extra = 'bgcolor="#' . $color . '"'; } // Show the days. $Cal_Weeks_Days .= '<td height="65" valign="top" ' . $Extra . '>' . $Day_i . '</td>'; // Increment the day number and the week day number (ii) $Day_i++; $ii++; } // Add end month spacers if ((8 - $ii) >= "1") { $Cal_Weeks_Days .= '<td colspan="' . (8 - $ii) . '"> </td>'; } // Echo the HTML echo '<HTML> <style type="text/css"> table,tr,td,th,tbody,TR,TD{ font-family: Verdana; font-size: 8pt; font-size: 11; color: #000000; border-font-size: 11; color: #000000; border-collapse: collapse; } </style>'; echo '<table border="1" cellpadding="1" cellspacing="1" width="98%"> <tr> <td align="center" colspan="7" bgcolor="#999999">'.$Current_Day_Name.' the '.$Current_Day_S.' of '.$Current_Month_Name.', '.$Current_Year.'</td> </tr> <tr> '.$Day_Names.' </tr> <tr> '.$Cal_Weeks_Days.' </tr> </table> </HTML>'; [/code]