phprockers-logo

Difference between mysql_connect and mysql_pconnect?

1. mysql_connection must be closed, we can't use this to connect another database means it is suitable for only one database accessing......

2.mysql_pconnect means opens a persistent connection, with this we use same host name, username, and password. we can access different databases at a time in the same program. we can't close the connection.

0 comments:

Post a Comment