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"" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]