<?php
    if(mysqli_num_rows($result) > 0) {
        while( $row = mysqli_fetch_assoc($result)) {
            echo "<tr>";
            echo "<td>" . $row['name'] . "</td><td>" . $row['email'] . "</td><td>" . $row['phone'] . "</td><td>" . $row['address'] . "</td><td>" . $row['company'] . "</td><td>" . $row['notes'] . "</td>";
            echo '<td><a href="edit.php?id=' . $row['id'] . '" type="button" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-edit"></span></a></td>';
            echo "</tr>";
        }
    }else {
        echo "<div class='alert alert-warning'>You have no Clients!</div>"
    }
    mysqli_close($conn);
    ?>      
every time i put this piece of code into the php file i get an HTTP ERROR 500 while using localhost on MAMP help plz.
 
     
    