mysqli_fetch_row () ожидает, что параметр 1 будет mysqli_result, логический
change that if statment to
if(!$result) {
Santino
change that if statment to
if(!$result) {