I have a very basic question but dont know how to do it. I want to refresh a page if the row count in a mysql table increases. I have tried a few different things like adding a seperate column in the table with the value being (id + 1) if the amount of rows and this value were equal then to do the refresh. This worked but then it started refreshing every 5 seconds because the statement kept evaluating to true. All I really want is a simple
if($num_rows changes){
// do this
}
any and all help would be great thanks