Jump to content

how to count html table row? plz hlp...


hola

Recommended Posts

i am trying to echo "room_Type_break" field, the problem is it only prints twice of each room_Type. for e.g.

 

cal.php

 

room_type

--------

ensuite

ensuite

single

single

 

book.php : Output:

 

single single

 

it is not printing out ensuite...any idea?

 

 

cal.php

if($qty !== '0'){
$p=0;
while($fday<$tday){
echo "<td>$room_Type<input type='text' name='room_Type_break' value='$room_Type'></td>
$p++;

}echo "<input type='hidden' name='count' value='$p'>"; }

book.php

for ($i = 0; $i <= $_POST['count']; $i++) {

$room_Type_break = $_REQUEST['room_Type_break_'.$i.''];

echo "$room_Type_break";
}

Link to comment
https://forums.phpfreaks.com/topic/49127-how-to-count-html-table-row-plz-hlp/
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.