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
What is mysql url?
Is mysql a dbms?
What is the use of mysqli_fetch_array?
What are stored procedures and functions?
How we can get distinct columns values in mysql?
Why is it called mysql?
What does innodb stand for?
How to display top 50 rows?
Write command to import an mysql file?
How are mysql timestamps seen to a user?
What do we use to remove duplicate records while fetching a data in mysql ?
How to display odd rows in student table in mysql?
Is foreign key indexed mysql?
What is myisam?
What is difference between mysql mysqli and pdo?