> -----Original Message-----
> From: chris h [mailto:[email protected]]
> Sent: Wednesday, October 06, 2010 1:44 PM
> To: Alejandro Michelin Salomon
> Cc: sueandant; [email protected]
> Subject: Re: [PHP] 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