What is the difference between mysql_connect() and
mysql_pconnect()?
Answer Posted / amita
mysql_connect everytime open a new connection to the database
while using mysql_pconnect , the function would first try to
find a (persistent) link 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...
the connection to the SQL server will not be closed when the
execution of the script ends. Instead, the link will remain
open for future use.
| Is This Answer Correct ? | 72 Yes | 4 No |
Post New Answer View All Answers
What is the difference between unix timestamps and mysql timestamps?
Write a query to stop mysql in unix
how to search second maximum(second highest) salary value(integer)from table employee (field salary)in the manner so that mysql gets less load?
How do I assign a variable in mysql?
How to filter data from a mysql database table with php?
How can I create a database in mysql?
What is the difference between mysql and pdo?
What is the difference between a database and a table?
What is the difference between procedure and function in mysql?
all the queries used in sql
What is the maximum size of table in mysql?
How to show all tables with 'mysql'?
What are the differences between char and varchar?
What is tee command in mysql?
How to dump a table to a file with 'mysqldump'?