Jump to content

Multiple Array - Cross validation????


StefanRSA

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.