RE: Class mysqli not found

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

 



> -----Original Message-----
> From: chris h [mailto:chris404@xxxxxxxxx]
> Sent: Wednesday, October 06, 2010 1:44 PM
> To: Alejandro Michelin Salomon
> Cc: sueandant; php-general@xxxxxxxxxxxxx
> Subject: Re:  Class mysqli not found
> 
> mysqli is set of functions not a class. The name to connect is
mysqli_connect
> 
> 
> mysqli can be used as either a set of functions ( mysqli_connect(..) ) OR
it
> can be used an an object ( new mysqli(...) ).  When used as an object you
> just use the various functions as methods.
> 
> http://www.php.net/manual/en/mysqli.connect.php
> 
> 
> Chris.
> 

Correction:  mysqli extension can be implemented as either procedural via
functions or as class objects via
$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'my_db');

Regards,
Tommy


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