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 are the objects can be created using CREATE statement?
What is the maximum size of mysql database?
How do I make an action query?
What is cursor in mysql?
What is the data type for image?
What is a deterministic function?
What is the size of mysql database?
What is prepared statement in mysql?
How to create a trigger in mysql?
What is database migration in mysql?
How does select query work?
What is int mysql?
How to make a copy values from one column to another in mysql?
What is max_used_connections in mysql?
What is mysql vs sql?