I have writte this code to allow me to remove orders within my database, however i am getting an "Warning" between these lines of code
the code only output 1 order, i would like it 2 output all the orders???
Warning: mysql_fetch_assoc(): 4 is not a valid MySQL result resource in on line 30
?>
<table border="1">
<tr>
<td>Order ID </td>
<td>Username</td>
<td>Total</td>
<td>Order Status </td>
<td> </td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_rsorders['orderid']; ?></td>
<td><?php echo $row_rsorders['username']; ?></td>
<td><?php echo $row_rsorders['total']; ?></td>
<td><?php echo $row_rsorders['order_status']; ?></td>
<td><a href="confirmDelete.php?recordID=<?php echo $row_rsorders['orderid']; ?>">Delete</a></td>
</tr>
<?php }
while ($row_rsorders = mysql_fetch_assoc($rsorders)); ?>
</table>