Have a look at the mysql_num_rows function in the PHP Manual.
This might get you started:
[FONT=Courier New]if (0 == mysql_num_rows($result3)) {
// do something if there are no rows returned.
}
else {
// do something with the data we've retrieved.
}[/FONT]
Regards,
Ryan