>"Call to undefined function" means it doesn't know the name of the function
>you are calling.

Hi there, i've had this error as well, using Redhat Linux 7.0.  For me, i'm
using the RPM's to install apache+PHP+MySQL, however, the php-mysql add-on
module is unable to recognize the dependant module mysql.  However i have
already installed and got a mysql database working!

The function mysql_connect() gives me the error "Call to undefined
function", SO I FORCED THE PHP-MYSQL INSTALLATION (rpm --nodeps mysql -i -vv
php-mysql-4.0.4pl1-3.i386.rpm), and i can now use this function to connect
to the database, however, i'm now getting "Warning: Supplied argument is not
a valid MySQL result resource in /var/www/html/test.php on line 9" which is
the mysql_fetch_array() command.

When i list RPM packages on my system versus what the php add-on module is
asking for is (when it fails during installation) the only difference is
case sensitivity?!  Could this be the problem?

Has anyone run into this installation problem of apache+php+mysql RPM on a
redhat linux box?   I guess i'm going to have to compile the servers myself.

Thanks,

Jay

-----Original Message-----
From: Patrick Dunford [mailto:[EMAIL PROTECTED]]
Sent: April 4, 2001 5:17 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Fatal error: Call to unsupported or undefined
functi on mysql_connect()


On 4 Apr 2001 06:54:45 -0700 AD in php.db, Brunner, Daniel said:

>Hello...
>
>Either the Username or Password or Database does not exist...

NO!.

"Call to undefined function" means it doesn't know the name of the function
you are calling.

if the function name is correct you either need to load a mySQL library for
PHP using the dl statement or you need to compile PHP with mySQL support
enabled.

Check with your server administrator.

>
>Do this
>
>$db =3D mysql_connect(server, $user, $password)=20
>       or die ("Sorry something is wrong");
>$select =3D mysql_select_db("intranet", $db);
>       or die ("Sorry something is wrong");
>
>That way you can see if it connects and or if the Database does
>exist.....
>
>
>You can also delete $select as well so it would read.....
>
>mysql_select_db("intranet", $db);
>       or die ("Sorry something is wrong");
>
>That what I use....
>
>That really might be the problem......
>
>
>Learn how to put in debug stuff..... It's easier to see your
>mistakes....I know I had a bunch...
>
>
>
>Dan=20
>
>
>
>
>> ----------
>> From:        Patrick Sch=E4fer
>> Sent:        Wednesday, April 4, 2001 7:41 AM
>> To:  PHP
>> Subject:     [PHP-DB] Fatal error: Call to unsupported or undefined
>> function mysql_connect()=20
>>=20
>> Can anybody help me with this problem ????
>>=20
>> Fatal error: Call to unsupported or undefined function =
>mysql_connect()
>> in
>> dbopen.php on line 7
>>=20
>> $server =3D "localhost";
>> $user   =3D "dbuser";
>> $password =3D "pass";
>> $db =3D mysql_connect($server, $user, $password); --> This is line 7 =
>of
>> my
>> script
>> $select =3D mysql_select_db("intranet", $db);
>>=20
>> Thanks,
>> Patrick
>>=20
>>=20
>> --=20
>> 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]
>>=20
>>=20
>
>

--
=======================================================================
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   Rejoice in the Lord always. I will say it again: Rejoice!
    -- Philippians 4:4
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010404
=======================================================================
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/


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