Home › Forums › Back End › Need advice how to view PHP › Reply To: Need advice how to view PHP
November 21, 2013 at 7:42 am
#156792
Participant
<table>
<tr>
<th></th>
<th colspan='3'>January</th>
</tr>
<?php while( $row = mysql_fetch_array( $result ) ){ ?>
<tr>
<td><?php echo “roomtype: “.$row['roomtype']; ?> </td>
<td><?php echo ” Jan1: “.$row['Jan1']; ?> </td>
<td><?php echo ” Jan2: “.$row['Jan2']; ?> </td>
<td><?php echo ” Jan3: “.$row['Jan3']; ?> </td>
</tr>
<?php } ?>
</table>
Try that. If it doesn’t work you might not have any data in your array. To find out if that’s true try running
<?php print_r( $row ) ;?>