Code:
<html>
<body>
<p>
<?php
$result = mysql_query("SELECT distinct room_type,room_price from room1 WHERE room_no NOT IN ( SELECT id_room_no
FROM reservation1 WHERE datein >='$datein' AND dateout <='$dateout')");
?>
</p>
<p><strong><strong>Room Availbility</strong></p>
<p> </p>
<td><table width="61%" height="64" border="1" cellpadding="0" cellspacing="0" bordercolor="#CC66CC" class="report2">
<tr>
<td width="38" bgcolor="#E8E8E8"><div align="center"><strong>BIL</strong></div></td>
<td width="190" bgcolor="#E8E8E8"><div align="center"><strong>Room Type </strong></div></td>
<td width="218" bgcolor="#E8E8E8"><div align="center"><strong>Room Price </strong></div></td>
<td bgcolor="#E8E8E8"><div align="center"><strong>Quantity</strong></div></td>
</tr>
<?php
$counter=1;
while ($data = mysql_fetch_array($result)):
?>
<tr>
<td height="28"><center><?php echo $start + $counter?>
</center></td>
<td><?php echo $data['room_type']; ?></td>
<td><?php echo $data['room_price']; ?></td>
<td width="153">
<?php input type="text" name="qty".$counter; id="qty" ?>
</td>
</tr>
<?php
$counter++;
endwhile;
?>
</table>
<p>
<label>
<input type="submit" name="submit" id="submit" value="Submit">
</label>
<a href="DisplayDetails.php">Next>> </a></p>
</body>
</html>
Hopefully someone can help me..
Comment