rendered paste body<?php require_once('db.php'); mysql_query($sql) or die(mysql_error().'<br><br>'.$sql); $sql = "SELECT order_number, order_status from order_status order by order_id asc"; $result = mysql_query($sql); $num_rows = mysql_num_rows($result);?><form method="post" action="<?php $_SERVER['PHP_SELF'];?>"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td><strong>Order Number</strong></td><td>Order Status</td> </tr><?php while( $row = mysql_fetch_array($result, MYSQL_ASSOC) ) { ?><tr><td><?php echo $row['order_number']?></td><td><?php echo $row['order_status']?></td></tr></table><?php } ?></form>