i have an error. Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, bool given in C:xampphtdocsgudangfunction.php [closed]

Question
$conn = mysqli_connect("localhost", "root", "","gudang");

function query($query) {
    global $conn;
    $result = mysqli_query($conn, $query);
    $rows = [];
    while( $row = mysqli_fetch_assoc($result) ) {
        $rows[] = $row;
    }
    return $rows;
}
0
, filemon harwiadi 10 months 0 Answers 112 views 0

Leave an answer