hello everyone.

im working on a PHP app that uses the same basic of a chat room.
but since i cant use java nor JS. i went with a 0frame refreshing constently and getting data from a MySQL DB.

considering this. and considering the data in the DB changes every 1-5 secondes. wich is prefared? a constent connectin to the db or the simple and relible connect?

another thing. when the window runing the pafe is closed, by the X mark without useing the connection close statment? how long till the Pconnect dies byitself?

thanks alot