<?php
        $sql = "Select * From offices";
    $result = mysqli_query($conn,$sql);
    while ($row = mysqli_fetch_array(result)){
        echo $row['name'];
    }

    ?>
    //  while ($row = mysqli_fetch_array(result)){ is line 188
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.