0
<?php while($row = $result->fetch_assoc()); ?>
    <tr>
        <td><?php echo $row['name']; ?></td>
        <td><?php echo $row['location']; ?></td>
        <td></td>
    </tr>
<?php endwhile; ?>

syntax error, unexpected 'endwhile' (T_ENDWHILE), expecting end of file emphasized text

closed as off-topic by nmr, fuxia Oct 9 at 10:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1

in while($row = $result->fetch_assoc()); semicolon occored issue. replace ; with :

<?php while($row = $result->fetch_assoc()): ?>
       <tr>
          <td><?php echo $row['name']; ?></td>
           <td><?php echo $row['location']; ?></td>
           <td></td>
        </tr>
 <?php endwhile; ?>

Not the answer you're looking for? Browse other questions tagged or ask your own question.