But what i understood about the difference between the two is that, mysql_pconnect() creates a permanent connection for about 8 hrs (by default) and does not close connection with mysql_close() while mysql_connect() closes connection by calling mysql_close() function. If that is the case, changing to mysql_connect() function requires one to close the connection. Must i close the connection on every page that opens that connection?