Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


new mysqli object is null using -'php,mysql,mysqli'


new mysqli object is null  using -'php,mysql,mysqli'

I'm trying to create a connection to a MySQL database using Mysqli in PHP. When I execute the following code on a stand alone page:

<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);

$link = new mysqli('localhost', 'myuser', 'mypass', 'dbname');
var_dump($link);


All I get outputted is an empty Mysqli object where all the properties are null. No error or anything gets displayed.

I also don't see any entries in the Apache or MySQL logs. I'm kind of at a lost on this one.
    

asked Sep 7, 2015 by rajesh
0 votes
5 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...