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

<th colspan='3'>January</th>
<?php while( $row = mysql_fetch_array( $result ) ){ ?>
<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>
<?php } ?>

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 ) ;?>