php-db | 2001041
Date: 04/10/01
- Next message: Rob Griffiths: "[PHP-DB] PHP4 to PHP3 problem"
- Previous message: Candy: "[PHP-DB] Setting Berkeley DB as default database"
- Maybe in reply to: Bruno: "[PHP-DB] Call to undefined function: mysql_pconnect()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I had this same problem. You require not only PHP and MySQL, but there is
another RPM (if using RedHat) that links the two. I don't remember it off
the top of my head, but it is entitle something like "php-mysql.rpm" or
"mysql-php.rpm".
-----Original Message-----
From: Bruno [mailto:burnett <email protected>]
Sent: Tuesday, April 10, 2001 2:00 AM
To: php-db <email protected>
Subject: Re: [PHP-DB] Call to undefined function: mysql_pconnect()
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 <email protected>> escribió en el mensaje
news:4.3.2.7.2.20010409102119.00e335c0 <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: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Rob Griffiths: "[PHP-DB] PHP4 to PHP3 problem"
- Previous message: Candy: "[PHP-DB] Setting Berkeley DB as default database"
- Maybe in reply to: Bruno: "[PHP-DB] Call to undefined function: mysql_pconnect()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

