Call to undefined function mysql_connect(), this means that php doesnt
reconize mysql_connect() as a function, this could be because you use the
wrong name for the function (in this case it seems ok, check your code), or
because the mysql extension isn't loaded (it is loaded by default, and it
should be if you didnt mess the php.ini file or the extensions directory).

There is an easy way to check if the extension is loaded, create a phpinfo
script:

<?php
    phpinfo();
?>

and serach for mysql to see extension is loaded.

Hope this helps.

----- Original Message -----
From: "JeRRy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 26, 2004 11:59 AM
Subject: [PHP-DB] Re: call to undefined function mysql_connect() [PHP /
MySQL / Red Hat 8]


> To: [EMAIL PROTECTED]
> From: "Jono" <[EMAIL PROTECTED]>
> Date: Wed, 25 Feb 2004 20:50:37 -0000
> Subject: call to undefined function mysql_connect()
> [PHP / MySQL / Red Hat 8]
>
>
> Hey.
>
> I've just installed Red Hat 8 from a downloaded
> distribution and have
> set up
> Apache, PHP and MySQL. The problem I have is my old
> code that I wrote
> in a
> Windows environment doesn't work.
>
> The error I get is: call to undefined function
> mysql_connect()
>
> I know that Apache is running fine and I know that PHP
> and MySQL run
> okay
> independantly of each other, but I can't work out how
> to get them
> working
> together.
>
> Any Ideas?
>
> Thanks, Jono.
>
>
> Hi,
>
> Generally you need to post your code to get help,
> otherwise we can't show you where the problem is.  So
> could you please, unless you have found a solution,
> post your code so we can see what's going on and point
> you in the right direction? :)
>
> J
>
>
> Find local movie times and trailers on Yahoo! Movies.
> http://au.movies.yahoo.com
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to