<?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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.