php-db | 2001041
Date: 04/10/01
- Next message: Rick St Jean: "Re: [PHP-DB] Robust OO Shopping Cart 4 sale"
- Previous message: B. van Ouwerkerk: "Re: [PHP-DB] Robust OO Shopping Cart 4 sale"
- In reply to: B. van Ouwerkerk: "Re: [PHP-DB] Call to undefined function: mysql_pconnect()"
- Next in thread: Rick Emery: "RE: [PHP-DB] Call to undefined function: mysql_pconnect()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Rick St Jean: "Re: [PHP-DB] Robust OO Shopping Cart 4 sale"
- Previous message: B. van Ouwerkerk: "Re: [PHP-DB] Robust OO Shopping Cart 4 sale"
- In reply to: B. van Ouwerkerk: "Re: [PHP-DB] Call to undefined function: mysql_pconnect()"
- Next in thread: Rick Emery: "RE: [PHP-DB] Call to undefined function: mysql_pconnect()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

