uncomment the line that enables the extension in your php.ini:

extension=mysql.so

if it don't work verify the line "extension_dir = /usr/lib/php4" and if the
file mysql.so is in this directory.


Bruno Gimenes Pereti.

----- Original Message -----
From: "JIM" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 30, 2001 11:44 PM
Subject: [PHP-DB] any extra work need to make php mysql function available?


> hi all,
> i am using redhat. i am able to run php script thro' webpage. but, failed
to
> use mysql functions in php. is there any extra work need to initialize
these
> functions?
> my code and error are shown as below,
> code ****************************
>
> <?
> echo " text generated by php <br>\n";
> echo $rmnum;
> printf(" b4 connected <br>\n");
> $link=mysql_pconnect("192.168.0.101", "chaze", "sochausee") or die
> ("failed");
> mysql_select_db("stjohn");
> ?>
>
> result ****************************
>
> text generated by php
> b4 connected
>
> Fatal error: Call to undefined function: mysql_pconnect() in
> /home/chaze/public_html/sjc/energy.php on line 7
>
> ****************************
> any comments?
> thanks,
> jim
>
>
>
> --
> 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]

Reply via email to