change_booking_details.php
Hi I am having a problem with this page. I have taken note of the $ sign to be put in on page 155. At the moment the booking details are showing up but the clients name is not pulling through, this is the third time I have started from scratch and not been able find the problem. Please could some one help me thanks very much in advance. Here is my code below.
<p>Thank you, <?php echo $row_rsclient['firstName']; ?> <?php echo $row_rsclient['lastName']; ?>, you can change
your booking details below.</p>
<form action="<?php echo $editFormAction; ?>" method="POST" name="bookroom" id="bookroom">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="239">Arrival Date :</td>
<td width="261"><input name="startdate" type="text" id="startdate" onFocus="MM_displayStatusMsg('Please enter your arrival date in the yyyy-mm-dd format');return document.MM_returnValue" value="<?php echo $row_rsbooking['startDate']; ?>" maxlength="10">
(yyyy-mm-dd) </td>
</tr>
<tr>
<td>Departure Date :</td>
<td><input name="enddate" type="text" id="enddate2" onFocus="MM_displayStatusMsg('Please enter your departure date in the yyyy-mm-dd format.');return document.MM_returnValue" value="<?php echo $row_rsbooking['endDate']; ?>" maxlength="10">
(yyyy-mm-dd)</td>
</tr>
<tr>
<td>Room Type :</td>
<td><select name="roomtype" id="roomtype">
<option value="Single" <?php if (!(strcmp("Single", $row_rsbooking['roomType']))) {echo "SELECTED";} ?>>Single</option>
<option value="Double" <?php if (!(strcmp("Double", $row_rsbooking['roomType']))) {echo "SELECTED";} ?>>Double</option>
<option value="Suite" <?php if (!(strcmp("Suite", $row_rsbooking['roomType']))) {echo "SELECTED";} ?>>Suite</option>
</select></td>
</tr>
<tr>
<td>In Room Extras Required :</td>
<td> <input <?php if (!(strcmp($row_rsbooking['networkConnection'],1))) {echo "checked";} ?> name="networkconnection" type="checkbox" id="networkconnection" value="1">
Network Connection</td>
</tr>
<tr>
<td> </td>
<td> <input <?php if (!(strcmp($row_rsbooking['PC'],1))) {echo "checked";} ?> name="pc" type="checkbox" id="pc" value="1">
PC</td>
</tr>
<tr>
<td>Number of Adults :</td>
<td><select name="adults" id="adults">
<option value="1" <?php if (!(strcmp(1, $row_rsbooking['adults']))) {echo "SELECTED";} ?>>1</option>
<option value="2" <?php if (!(strcmp(2, $row_rsbooking['adults']))) {echo "SELECTED";} ?>>2</option>
</select></td>
</tr>
<tr>
<td>Number of Children :</td>
<td><select name="children" id="children">
<option value="0" <?php if (!(strcmp(0, $row_rsbooking['children']))) {echo "SELECTED";} ?>>0</option>
<option value="1" <?php if (!(strcmp(1, $row_rsbooking['children']))) {echo "SELECTED";} ?>>1</option>
<option value="2" <?php if (!(strcmp(2, $row_rsbooking['children']))) {echo "SELECTED";} ?>>2</option>
<option value="3" <?php if (!(strcmp(3, $row_rsbooking['children']))) {echo "SELECTED";} ?>>3</option>
</select></td>
</tr>
<tr>
<td>Room Options :</td>
<td><table width="413" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="227"> <label>
<input <?php if (!(strcmp($row_rsbooking['roomOptions'],"0"))) {echo "CHECKED";} ?> type="radio" name="roomoptions" value="0">
Smoking </label> </td>
<td width="273"> <input <?php if (!(strcmp($row_rsbooking['roomOptions'],"1"))) {echo "CHECKED";} ?> type="radio" name="roomoptions" value="1">
Non Smoking</td>
</tr>
</table></td>
</tr>
<tr>
<td>Special Requirements :</td>
<td><textarea name="requirements" cols="30" rows="6" id="textarea"><?php echo $row_rsbooking['requirements']; ?></textarea></td>
</tr>
<tr>
<td> <input name="clientID" type="hidden" id="clientID" value="<?php echo $row_rsbooking['clientID']; ?>">
<input name="bookingid" type="hidden" id="bookingid" value="<?php echo $row_rsbooking['ID']; ?>">
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> <input type="submit" name="Submit" value="Change my Booking"></td>
</tr>
</table>
<input type="hidden" name="MM_update" value="bookroom">
</form>
<p> </p>
</td>
</tr>
<tr>
<td colspan="5" bgcolor="#FFFFFF"> </td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($rsbooking);
mysql_free_result($rsclient);
?>
|