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

Re: PHP: mysql_connect() undefined function



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.

> but  I can use phpMyAdmin

For the same host ?

> 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'.

-- 
Regards
Stephen
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Why is it that we rejoice at a birth and grieve at a funeral?  It is because we
are not the person involved.
		-- Mark Twain, "Pudd'nhead Wilson's Calendar"
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Attachment: signature.asc
Description: Digital signature


Reply to: