Re: any extra work need to make php mysql function available?
| From: | EdwardSPL at ita dot org dot mo | Date: | Wed, 14 Nov 2001 12:09:16 +0000 |
| Subject: | Re: any extra work need to make php mysql function available? | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-4942@lists.php.net to get a copy of this message | ||
Jim wrote:
> 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");
You may try :
mysql_select_db('stjohn',$link);
>
> ?>
>
> 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