It sounds like the query is never performing since there is no data in the table to select. Try this...
change:
if ($totalonline > $numberoldhigh) {
to
if ( ($totalonline > $numberoldhigh) or ($numberoldhigh < 1) ) {
Check your highsessions table and see if any data is being entered.
No members have liked this post.
|