Re: Fatal error: Call to undefined function: mysqli_connect() in

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

 



Gary,
you can check this by either creating a file containing this:
<?php phpinfo(); ?>
and putting it up on your webserver, then open in with your browser,
or you could look at the output of "php -i | less" on the command
line.

After you enabled the mysqli extension on your host, you might change
mysqli_connect('$var', '$var2', ...); to
mysqli_connect($var, $var2, ...)

One side node.. you should apply addslashes() also to
$_SERVER['REMOTE_ADDR'), because an evil person could manipulate the
value of that variable to execute SQL-Injections.

Bye


2009/3/14 Gary <gwpaul@xxxxxxx>:
> Thanks for your quick reply, but I do not know what that means... Where
> would I find this out and how would I accomplish this if it is not done?
>
> Thanks again.
>
> "Per Jessen" <per@xxxxxxxxxxxx> wrote in message
> news:gpgq8i$h5g$1@xxxxxxxxxxxxxxxxxxx
> Gary wrote:
>
>> I am recieving a fatal error trying to connect to my server/mysql.
>> This is my first attempt at connecting to a remote server, have been
>> successful with localhost (apache). I had the variation of not putting
>> the hostname & others into a variable, but that did not work either.
>>
>> I have also genericised the username and password for this post. Host
>> name is correct.
>>
>> Can anyone enlighted me as to what I am not doing correctly?
>>
>>
>> Fatal error: Call to undefined function: mysqli_connect() in
>
> Check if the mysqli extension has been loaded.
>
>
> /Per
>
>
> --
> Per Jessen, Zürich (10.9°C)
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux