Kraken Kraken - 1 year ago 83
MySQL Question

The mysqli_connect not working

I installed apache, php and mysql. Now when I execute the php code, the

is not working, neither it's showing the message in die.

$dbc=mysqli_connect(' ', ' ', ' ', ' ') or die('not connecting');

Now someone tell me what database username shall I pass to
and what password. I don't remember I was asked for any username or password
and why isn't the message in
showing up?

outputs bool(false).. if it has anything to do with it, how do I correct it.?

Answer Source

Looks like MySQLi extension is not installed. What does var_dump(function_exists('mysqli_connect')); output?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download