Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between mysql_connect() and
mysql_pconnect()?

Answer Posted / sumit

In mysql_pconnect(), ‘p’ stands for persistance connection.

when connecting, the function would try to find a (persistent) connection that’s already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.


mysql_connect() function, every time it is opening and closing the database connection.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use pragma autonomous transaction?

960


What is the current version of mysql?

1017


How to use mysqldump to create a copy of the database?

1132


What is difference between mysql mysqli and pdo?

1026


How would you get the current date in mysql?

1156


What is a tinyint in mysql?

961


How do I rename a table in mysql workbench?

1025


What is the default password for mysql?

943


What are triggers in mysql?

974


What is longblob in mysql?

1015


How do I create a new database in mysql?

956


What is difference between mysql and mysql server?

1034


What is ibdata1?

965


What are the benefits of mysql?

981


What is the difference between mysql_fetch_array() and ysql_fetch_object() ?

1078