title: How to check if mysqli_connect was successful or not?
body: <p>I'm writing an installer script and I need to check if the user entered correct database information and therefore need to check if mysqli_connect was successful or not. A simple if-else will suffice.</p>