Re: mysqli class not found
| From: | PHP Superman | Date: | Thu, 29 Dec 2005 02:56:53 +0000 |
| Subject: | Re: mysqli class not found | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227947@lists.php.net to get a copy of this message | ||
you are not missing anything, you are actually adding to much. Using "new"
is for making objects, if you take away the "new" in the $result variable
declaration it should work fine.
On 12/28/05, Erik Saline <esaline@mindspring.com> wrote:
>
>
> ----- Original Message -----
> From: Erik Saline
> To: php-general@lists.php.net
> Sent: Wednesday, December 28, 2005 1:08 PM
>
>
> I installed Apache, PHP, and Mysql during the Fedora Core 4 installation.
>
> PHP 5.0.4
> MYSQL 4.1.14
>
> I used php -i to show that mysql and mysqli were installed.
> Configure Command => './configure' '--build=i386-redhat-linux'
> '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config'
> '
>
> Here is the code.
>
> $result = new mysqli_connect('localhost', 'nobody', 'test',
> 'godisdead');
>
> Here is the error.
>
> PHP Fatal error: Class 'mysqli' not found in
> /var/www/cgi-bin/db_connect.php on line 4,
>
>
>
> What am I missing?
>
>
>
> Erik
>
>
--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!