Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Need advice how to view PHP Reply To: Need advice how to view PHP

#156792
danramosd
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 ) ;?>