Home » questions » how to count no.of room of room type? help me plz...?
how to count no.of room of room type? help me plz...?
room type is stored in field in string format eg: standard twin, standard twin, family.And after i explode it become array.How want to count the no. of room? $rt = explode(',', $roomtype);
how to count the $rt? how to show the standard twin is 2, family is 1?
this is my problem....
Qty-----Room Type-----Sales Price-----Room Total Price
1--------Standard Twin-------120.00 ------ 120.00
1--------Standard Twin-------120.00 ------ 120.00
1 ------- Standard Queen ----150.00 ------ 150.00
i want my table look like this.....
Qty Room Type Sales Price Room Total Price
2-------Standard Twin-------120.00 ------ 240.00
1 ------- Standard Queen ----150.00 ------ 150.00
can anybody help me... please... i just a little girl in a big world.. please...
it in php language

Answers
jmfc
On 2006-08-09 08:24:14