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

Answer Posted / pramod kumar

1. mysql_pconnect() creates the persistent connection,mysql_connect not create persistent connection to the database.
2. mysql_connect() connection automatically disconnected after execute the code but mysql_pconnect() not.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I get a list of table names in mysql?

701


Can you tell how many values can set the function of mysql to consider?

746


What are the limitations of mysql?

755


How to show all records starting with the letters 'sonia' and the phone number '9876543210'

744


How to check if a record exists in a mysql database php?

681


What are the objects can be created using CREATE statement?

754


What is identity in mysql?

744


How do you say mysql?

682


Why do we use views instead of tables?

683


What is difference between mysql and mysqli?

697


How can you retrieve a portion of any column value by using a select query?

695


How to insert dynamic values in mysql using php?

881


Can varchar be primary key?

706


Explain the difference between procedure and function in mysql?

756


How to get a list of indexes of an existing table?

745