Here Is my code:
$conn=mysqli_connect("localhost","root","");
$db=mysqli_select_db("root");`
And I got the following error:
Warning The
mysqli->connect_error
property only works properly as of PHP versions 5.2.9 and 5.3.0. Use themysqli_connect_error()
function if compatibility with earlier PHP versions is required.