Howdy.
This is extremely urgentso if anyone can help.
I have one table consisting of employee details, which contains all their essential details.
I have a second table to list all of the employees on duty, whose primary key is the employee_number.
If a employee is on duty, his/her Id will appear on both tables.
My problem is that I wish to list out all the emnployees, both onduty and offduty,
and place and \"ON\" beside his/her name on the web-page, if on duty.
like this
while ($myrow = mysql_fetch_row($result)) {
printf(\"<tr><td><center><a href=search2.php3?num=%s>%s %s</td></center></a>\",$myrow[0],$myrow[1],$myrow[2]);
//I wish to put the code for the \"ON\" here
}
if anyone could help.
Thanks