Re: [PHP] For Loop Problems

2004-07-28 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hello Everyone, I'm building a hotel management system and I can't seem to figure out why my for() loop doesn't work the way it should. I'm using patTemplate to create the HTML Template (I like using it and I don't want to start a pro/con template war). Here is the script:

Re: [PHP] For Loop Problems

2004-07-28 Thread rush
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > for ($j = 0; $j < 32; $j++) { > for ($i = 0; $i < count($num_days); $i++) { > $template->addVar("room_num", "ROOM_NUM", '101'); > $template->addVar("room_type", "ROOM_TYPE", 'NQQ'); > $template->addVar("gues

[PHP] For Loop Problems

2004-07-28 Thread php-list
Hello Everyone, I'm building a hotel management system and I can't seem to figure out why my for() loop doesn't work the way it should. I'm using patTemplate to create the HTML Template (I like using it and I don't want to start a pro/con template war). Here is the script: for ($j = 0; $j < 32; $