You will have to excuse my stupidity, but I have been not using PHP in about a year.... I get an "Undefined Index of ExamDate, and I cannot figure out why
$db = @mysql_select_db("Brent", $connection) or die("Couldn't select database.");
$sql_exam = "SELECT exams.ExamID, exams.PatientID, DATE_FORMAT(exams.ExamDate, '%W %M %D, %Y')AS Joined FROM exams LIMIT 10" ;
$result_exam = @($sql_exam, $connection) or die("Couldn't execute query1.");
$i = 0;
while ($row = mysql_fetch_array($result_exam)) {
$array[$i]['ExamID'] = $row['ExamID'];
$array[$i]['PatientID'] = $row['PatientID'];
$array[$i]['ExamDate'] = $row['ExamDate'];
$i++;}
$sql_patients = "SELECT PatientID, PatientFirstName, PatientLastName FROM $patients ";
$result_patients = @($sql_patients, $connection) or die("Couldn't execute query2.");
$i = 0;
while ($row = mysql_fetch_array($result_patients)) {
$PatientID = $row['PatientID'];
$PatientFirstName = $row['PatientFirstName'];
$PatientLastName = $row['PatientLastName'];
}
$sql_examfees = "SELECT ExamID, ProcedureID, ExamFee FROM examfees ORDER BY ExamID";
$result_examfees = @($sql_examfees, $connection) or die("Couldn't execute query3.");
while ($row = mysql_fetch_array($result_examfees)) {
$ExamID = $row['ExamID'];
$ProcedureID = $row['ProcedureID'];
$ExamFee = $row['ExamFee'];
}
Echo $PatientLastName, $PatientFirstName, $ExamFee;
?>