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

#156771
danramosd
Participant

You want to use an HTML table. Where you have the 4 lines that echo out the values you will want to change that to this:

<table>
<tr>
<th></th>
<th colspan='3'>January</th>
</tr>
<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>
</table>