How To Enter Enter The Results From An Sql Query Into A Html Table With Php
I'm looking for a solution whereby it loops through each record in my database query and gives it it's own row in a html table with fixed table headings. Below is the current php I
Solution 1:
Here's a simple solution:
while ( $row = mysqli_fetch_assoc( $result ) ){?>
<tr>
<td><?=$row['PropertyType']?></td>
<td><?=$row['Description']?></td>
<td><?=$row['RentPrice']?></td>
<td><?=$row['Location']?></td>
</tr>
<?php
}
Post a Comment for "How To Enter Enter The Results From An Sql Query Into A Html Table With Php"