Ask a Question
Advertise on boostr.in
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:
$link = new mysqli('localhost', 'myuser', 'mypass', 'dbname');
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.
Sep 7, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please