I came across this question recently, how to check if there is an open connection to mysql?
Everyone knows that in order to use mysql_real_escape_string
need to have a certain connection, so I wanted to check if there is one, if yes then use mysql_real_escape_string
.