PHP says "No Database selected" even after using mysqli_select_db()
mysqli_fetch_assoc() expects parameter / Call to a member function bind_param() errors. How to get the actual mysql error and fix it?