ARRGG. PLEASE HELP
Posted: Wed Jun 12, 2002 12:54 pm
I need some help here. I cannot figure out where the error is coming from? It says it has a parse error but everything is is good order. I must have checked this thing over atleast 15 times.
Thanks for the help and sorry for the dirty code
Code: Select all
<?
session_start();
$flag = 0;
if(isset($SESSION)){
if((empty($class)) || (empty($professor)) || (empty($building)) || (empty($room))){
print "<html><head><title>Information successfully added</title>
<meta http-equiv="refresh" content="2;URL=add_class.php?class=$class&professor=$professor&building=$building&room=$room"></head>
<body>Form not completed</body></html> ";
} else {
$connection = mysql_connect("localhost","fxmri","MarK");
mysql_select_db("fxmri");
$class_time = "$class_first_hour:$class_first_minute - $class_second_hour:$class_second_minute $class_ampm";
$lab_time = "$lab_first_hour:$lab_first_minute - $lab_second_hour:$lab_second_minute $lab_ampm";
$verify = mysql_query("SELECT uid, class, semester FROM class");
while($row = mysql_fetch_array($verify)) {
if(($SESSIONїuid] != $rowї"uid"]) && ($SESSIONїclass] != $rowї"class"]) && ($SESSIONїcurrent_semester] != $rowї"semester"])) {
mysql_query("INSERT INTO class VALUES ('$SESSIOINїuid]','$class','$professor','$class_time','$notes','$building','$room','$days','$lab','$lab_time','$SESSIONїcurrent_semester]')");
mysql_close($connection);
print "<html><head><title>Information successfully added</title>
<meta http-equiv="refresh" content="0;URL=login.php"></head>
<body></body></html> ";
$flag = 1;
} else
if($flag != 1) {
print "<html><head><title>Information successfully added</title>
<meta http-equiv="refresh" content="0;URL=add_class.php"></head>
<body></body></html> ";
}
}
}
}
} else {
print "<html><head><title>You are not logged in yet</title>
<meta http-equiv="refresh" content="2;URL=index.php"></head>
<body> You are not logged in.</body></html>";
}
?>