Hi all,
Please could somebody point out where I’m going wrong with this?
I’m trying to display some results in a HTML table but I can’t get them to show.
[code=php]<table class=”table table-bordered table-hover table-striped”>
“<thead>
<tr>
<th>Company Name</th>
<th>Firstname</th>
<th>Lastname</th>
<th>E-mail</th>
<th>Address Line</th>
<th>Address Line</th>
<th>City/Town</th>
<th>County</th>
<th>Postcode</th>
<th>Country</th>
<th>Phone Number</th>
<th>Update Details</th>
<th>Equipment</th>
</tr>
</thead>”;
<?php while($row = mysqli_fetch_array($result)); ?>
<tbody>
<tr>
<?php echo “<td>” . $row[‘companyid’] . “</td>”; ?>
<?php echo “<td>” . $row[‘companyname’] . “</td>”; ?>
<?php echo “<td>” . $row[‘firstname’] . “</td>”; ?>
<?php echo “<td>” . $row[‘lastname’] . “</td>”; ?>
<?php echo “<td>” . $row[’email’] . “</td>”; ?>
<?php echo “<td>” . $row[‘address1’] . “</td>”; ?>
<?php echo “<td>” . $row[‘address2’] . “</td>”; ?>
<?php echo “<td>” . $row[‘city’] . “</td>”; ?>
<?php echo “<td>” . $row[‘county’] . “</td>”; ?>
<?php echo “<td>” . $row[‘postcode’] . “</td>”; ?>
<?php echo “<td>” . $row[‘country’] . “</td>”; ?>
<?php echo “<td>” . $row[‘phonenumber’] . “</td>”; ?>
</tr>
</tbody>
</table>
What am I missing? 😮
Thanks