It´s a start:
To reduce the so called waste of resources I should try the following:
Add a field with type TIMESTAMP to the mysql table.
To determine update or insert actions, use SELECT * FROM table WHERE field_timestamp > lasttimestamp;
You can store te lasttimestamp in a cookie on the client machine. Only refresh the second frame when de query results in 1 or more rows.
Refreshing of other frames is best done by executing a proper javascript. You can write this javascript conditional (NOT TESTED):
<?
if (mysql_num_rows($result)) {
?>
<script language="javascript">
parent.nameofframe2.location.reload();
</script>
<?
}
?>
Arjaan
PS: to get more and quicker answers, try using a more appropiate subject for your postings. There's no need or reason to "challenge".
You´re lucky cause I´m new here, so I´m reading lots of postings.