The following are the differences –
– A new connection is established to the database by using mysql_connect, where as mysql_pconnect opens a persistant connection to the database.
– mysql_connect can be used to close the connection, where as mysql_pconnect can not close the connection.
– Database is opened every time when the page is loaded by mysql_connect. Whereas by using mysql_pconnect, database need not be connected every time.