Page 1 of 1

database connection question..

Posted: Sat Apr 15, 2006 12:45 pm
by pleigh
mysql_connect and mysql_pconnect are two different php functions for db connections...correct me if i'm wrong...what is your preference in connecting to mysql database??

Posted: Sat Apr 15, 2006 1:13 pm
by Christopher
I think you should start with mysql_connect() and use it until you have a site that needs mysql_pconnect().

Posted: Sat Apr 15, 2006 1:56 pm
by John Cartwright
arborint wrote:I think you should start with mysql_connect() and use it until you have a site that needs mysql_pconnect().
I always thought it was the opposite, that using pconnect() is prefered for a small user base.. while normal connect() is prefered for higher volume sites. :oops: