Re: Call to undefined function: mysql_pconnect()

From: Date: Tue, 10 Apr 2001 07:00:08 +0000
Subject: Re: Call to undefined function: mysql_pconnect()
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-8405@lists.php.net to get a copy of this message
Hello, Here's the code : if (DB_PCONNECT == true) { $connectfunc = "mysql_pconnect"; } else { $connectfunc = "mysql_connect"; } $this->link = $connectfunc($db_addr, $db_user, $db_pass) or $this->error("Could not connect to database server.") mysql_select_db($db_name, $this->link) or $this->error("Could not select database '$db_name'.") The line that gives the error is "$this->link = $connectfunc($db_addr, $db_user, $db_pass)". If you need more code, please let me know. Thank you Bruno ""B. van Ouwerkerk"" <bvo@atz.nl> escribió en el mensaje news:4.3.2.7.2.20010409102119.00e335c0@pop.atz-hosting.nl... > > >I am getting this error when I run a program that tries to access a mySQL DB > >trough PHP4. I've read that this error appears when the module for mySQL > >isn't present. > > A bit of code could help.. if it's caused by the wrong .so, you could try > what happens if you compily PHP with the .so from the mysql source.. > > I would take a look at the code first.. perhaps try an example. > > Bye, > > > B. > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#8405) next »