MY simple PHP script (named mysqlconnect.php) first two lines are
<?php
$mysqli = new mysqli ("localhost", "me", "mypassword", "db1");
...........etc
The script bombs out immediately with the error message
"PHP Fatal Error: Class 'Mysqli_connect" not found in c:\\program
> files\apache group\ .....\mysqlconnect.php"
This seems like a library routine has not been located in the PATH
described.
I don't know what the "Class" refers to or how to fix it. Any insight would
be appreciated.
Thank ou
"NC" <nc.DeleteThis@iname.com> wrote in message
news:3cb751ae-4aeb-40eb-9069-87543a42c670@z11g2000prl.googlegroups.com...
On Aug 15, 9:17 am, "Allenx" <br1n....DeleteThis@gmail.com> wrote:
>
> My 'mysqlconnect.php' simple connection test script returns a browser
> message
>
> "PHP Fatal Error: Class 'Mysqli_connect" not found in c:\\program
> files\apache group\ .....\mysqlconnect.php"
Any chance this is because this class isn't defined anywhere? The
mysqli extension defines four classes:
MySQLi
MySQLi_ STMT
MySQLi_ Result
MySQLi_ Driver
and Mysqli_connect is not one of them...
It seems to me you are confusing the MySQLi class with the
mysqli_connect method...
Cheers,
NC
>> Stay informed about: PHP-MYSQL-Apache MYSQLi_CONNECT questions