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

Answer Posted / jyotisankar pradhan

mysql_connect open a new connection to the database

but mysql_pconnect open a persistant connection to the database

Is This Answer Correct ?    80 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does mysql store binary data?

705


What can I do with mysql?

696


How do I update a variable in mysql?

706


What is mysqladmin flush hosts?

728


Why do we use preparedstatement?

681


Where the database is stored in mysql?

729


I want to insert userid of a customer,order time,etc in a table called ordermaster with orderid as primary key.Same time the product codes and required quantities (a1,2 and a2 4 and so on)inserted in another table orderdetails with same orderid reference.How the code will be in JSP using MySQL?

1694


In how many ways we can retrieve the data in the result set of MySQL using PHP? What is the difference between mysql_fetch_object and mysql_fetch_array ?

786


Does mysql use t sql?

753


Is sqlite faster than mysql?

693


How can I remotely connect to mysql database?

694


What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?

720


How many types of indexes are there in mysql?

695


what is constraints? Also explain the different types of constraints?

726


Describe mysql transaction properties.

733