Classic Jhumka Earrings Silver INR 113.00 Free Shipping Buy Now
Black Jhumka Earrings & Studs INR 94.00 Free Shipping Buy Now
Classic Jhumka Earrings Silver INR 207.00 Free Shipping Buy Now
Beautiful stud earing INR 93.00 Free Shipping Buy Now
Different Size Hoop and Stud Earrings Set INR 243.00 Free Shipping Buy Now
Golden Hoop Earing INR 70.00 Free Shipping Buy Now
Home Questions & Answers Technology MySQL Question Answers What is the difference between MySQL_connect and MySQL_pconnect?

    What is the difference between MySQL_connect and MySQL_pconnect?

  • Mysql_connect:

    1. It opens a new connection to the database.
    2. Every time you need to open and close database connection, depending on the request.
    3. Opens page every time when it loaded.

    Mysql_pconnect:

    1. In Mysql_pconnect, "p" stands for persistent connection so it opens the persistent connection.
    2. the database connection can not be closed.
    3. it is more useful if your site has more traffic because there is no need to open and close connection frequently and every time when page is loaded.