[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP: mysql_connect() undefined function



2006/8/16, Stephen <stephen.d.allen@gmail.com>:
On Wed, Aug 16, 2006 at 05:24:44PM +0200 or thereabouts, Paolo Pantaleo wrote:
> Hi,
> I am quite a newbie with PHP...

We all were at one time.

> I get this error message:
>
> Fatal error: Call to undefined function mysql_connect() in
> /home/paolo/webs/mypic/s_page/guestbook.php on line 19

In the future, you may wish to Google the error syntax directly.
Well I thought it was a packages problem


> but  I can use phpMyAdmin

For the same host ?
Yes... I can use phpMyAdmin on the same apache server that give me the error.


> The same page works ok on another Apache serve.

Not really relevant, unless you set up both. Then you should know what
you did on the working one in order to duplicate. ;)

> Any suggestion?

I suspect that php4-mysql isn't installed and/or activated.

Therefore try 'aptitude install php4-mysql' or 'apt-get install
php4-mysql'.

Well I installed php5 (and php5-mysql), should I use php4 (I have testing) ?



Reply to: