RE: [PHP] Class mysqli not found
| From: | Tommy Pham | Date: | Wed, 06 Oct 2010 23:36:19 +0000 |
| Subject: | RE: [PHP] Class mysqli not found | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308525@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: chris h [mailto:chris404@gmail.com]
> Sent: Wednesday, October 06, 2010 1:44 PM
> To: Alejandro Michelin Salomon
> Cc: sueandant; php-general@lists.php.net
> 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