Hey guys,
Ok the problem I have makes no sense to me. I am registering a variable on one of my pages which causes one of my dynamic menus to mess up. The menu is generated through an SQL query but the two are unrelated. Here is the code any comments will help:
<?/session_register("StudentID");/ ?>
<head>
<?php
include "include/header.inc";
?>
function form() {
$link = mysql_connect("localhost", "name", "pwd");
mysql_select_db ("table");
$result = mysql_query("select TimeSheetID, ts.StartDate from TimeSheet as ts left join Project as pr on ts.ProjectID=pr.ProjectID where and ts.StudentID='$StudentID' pr.ClassID='$Class' order by ts.StartDate");
<select name='TSID'>
<option value='null'>Select date</option>";
while (list($tsid, $startdate) = mysql_fetch_row($result)){
echo "<option value=\"$tsid\">$startdate</option>";
}