mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in [duplicate]

The query given to mysqli_query() is failing and returning false.

Put this after mysqli_query() to see what’s going on.

if (!$check1_res) {
    trigger_error(mysqli_error($con), E_USER_ERROR);
}

For more information:

http://www.php.net/manual/en/mysqli.error.php

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)