StefanRSA Posted May 1, 2009 Share Posted May 1, 2009 Hi, I have the following to get data in a table: while($row = mysql_fetch_array( $result )) { // Print out the contents of each row into a table ////////////////////////////////////// $reg_name = $row['est_name']; $inputid=$row['update_id']; $fullrow = $row['accom_type']; $pp_pr = $row['pp_pr']; echo "<tr><td>"; echo $row['accom_type'].' - '.$row['max'].' units - '.$row['pax'].' beds per unit'; echo "</td><td>"; echo "<input id='$inputid-units' class='TextField' name='fields[$inputid][units]' type='text' size='3' value=0 maxlength='3'>"; echo "</td><td>"; echo "<input id='$inputid-adults' class='TextField' name='fields[$inputid][adults]' type='text' size='3' value=0 maxlength='3'>"; echo "</td><td>"; echo "<input id='$inputid-children' class='TextField' name='fields[$inputid][children]' type='text' size='3' value=0 maxlength='3'>"; echo "</td><td>"; echo "<input id='$inputid-infants' class='TextField' name='fields[$inputid][infants]' type='text' size='3' value=0 maxlength='3'>"; echo "</td></tr>"; echo "<input type='hidden' id='$inputid-accom_type' name='fields[$inputid][accom_type]' value='$fullrow'>"; echo "<input type='hidden' id='$inputid-pp_pr' name='fields[$inputid][pp_pr]' value='$pp_pr'>"; ///////////////////////////////////////// } And if it will make it easier, want to also put a link so you can see what I am talking about.... http://www.thehost.co.za/online/add1.php?name=HOS-DEM-001 I need the rooms selected not to be more than available to book and also the total people per room more than allowed.... I am very confused and new to php... Can anybody please help me regarding this matter... Thanks Link to comment https://forums.phpfreaks.com/topic/156379-multiple-array-cross-validation/ Share on other sites More sharing options...
StefanRSA Posted May 1, 2009 Author Share Posted May 1, 2009 Is there realy NOBODY that can help me, or just direct me into how this kind of thing can be done? PLEASE...... Link to comment https://forums.phpfreaks.com/topic/156379-multiple-array-cross-validation/#findComment-823330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.