Re: Re: call to undefined function mysql_connect() [PHP / MySQL / Red Hat 8]

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

 



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" <jusa_98@xxxxxxxxx>
To: <php-db@xxxxxxxxxxxxx>
Sent: Thursday, February 26, 2004 11:59 AM
Subject:  Re: call to undefined function mysql_connect() [PHP /
MySQL / Red Hat 8]


> To: php-db@xxxxxxxxxxxxx
> From: "Jono" <jono@xxxxxxxxxxxxxxxxxxxxxx>
> 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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux