I may well have overlooked this but is there a function that returns if a connection is still active? I cant find one.
While i was looking i found mysql_pconnected - when would you ever want to use this?
found it!
mysql_ping()