[PHP-DB] Array & loops

2003-03-06 Thread Robin Sanchez
I am creating a results page for completed and uncompleted procedures. I am repeating a lot of the code and wonder if there is an easier way to do this. $neh="select * from pro_list, complete_pro where pro_list.pro_name ='Neurological Exam/History' and complete_pro.proid=pro_list.proid and complet

[PHP-DB] Re: Array & loops

2003-03-06 Thread Robin Sanchez
$exam_count++; } } foreach ($array_of_exams as $exam => $description) { foreach ($exam_dates[$exam] as $date_done) { echo "1. $description : $date_done"; } } That should do all that u want It will list all exam times that meet your search. Joel Colombo "Robi