Error warning: mysqli_ error() expects parameter 1 to be mysqli, null given。 Any idea why? Warning: mysqli_error() expects parameter 1 to be mysqli, null given. Any thoughts The reason is that version 5.6 of PHP is too old, Solutions: Replace php7