help with a reservation system

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jenny kaur
Forum Newbie
Posts: 5
Joined: Mon Jan 24, 2005 1:16 pm
Location: London, England and Tokyo, Japan

help with a reservation system

Post by jenny kaur »

$room_num$room_num$room_num$room_num
Last edited by jenny kaur on Fri Jan 28, 2005 10:15 am, edited 1 time in total.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

// increment counter
$room = $room + 1;
}
// output the results to a table
1-) at first sight you are closing here the while ($row = mysql...) { loop.
but you are nowhere closing the while ($room <= $...)



2-) mysql has from and to unixtime functions... no need to do it in php.
jenny kaur
Forum Newbie
Posts: 5
Joined: Mon Jan 24, 2005 1:16 pm
Location: London, England and Tokyo, Japan

Post by jenny kaur »

hey thanks for reply but did u read my post? :?

that does not solve my problem,

i want to show the dates the rooms are free or not...

i made a little diagram to show the desired output i wanted!

please help!
Post Reply