Re: mysqli_connect ??

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



You likely have to install the mysqli package for your distribution.

Try a search for something like "ubuntu install php mysqli" or "centos install php mysqli"
I can tell you for ubuntu you probably would need to do something like this:
sudo apt-get install php5-mysql

If you're in a hosted environment, you might be out of luck unless they'll install it for you :-) But I would also be surprised if a hosted environment was missing this package.


On 09/07/2012 01:36 PM, Jim Giner wrote:
No - they are not.  :(
On 9/7/2012 1:32 PM, Bastien Koert wrote:
On Fri, Sep 7, 2012 at 10:54 AM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx> wrote:
Experimenting with prepared statements - trying out for the first time.

I keep getting a fatal error on this statement:


Message is:
Fatal error: Call to undefined function mysqli_connect() in
/home/albany/php/sqli_db_connect_select.php on line 6

My host is running php 5.3.9

Can anyone clue me in?  I copied my usage directly from the manual!

PHP Database Mailing List (
To unsubscribe, visit:

Check to see if mysqli_functions are enabled with phpinfo()

PHP Database Mailing List (
To unsubscribe, visit:

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

  Powered by Linux