0) {
while ($list = mysqli_fetch_array($sql)) {
$rows[] = $list;
}
return($rows);
}
else
return (0);
}
else {
return (0);
}
}

?>