So far it works well but i have a small problem with the 'add other types' function when i make a reservation. For example ..I have a familie which booked a room with a double bed and a single bed for their child (a bed = one Apartment for one person)..Therefore i make a new reservation under the name of the man or his wife and instead of changing 'Number of reservations of this type' I use the 'Add other type' function ..because the rate for the child is not the same like for the parents!...but if insert the reservation following error is shown..
ERROR IN: select idappartamenti from appartamenti and numcasa = 'Officers Mess dorm'
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and numcasa = 'Officers Mess dorm'' at line 1
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Documents and Settings\bonny\My Documents\downloads\php-residence\xmapp\xampp\htdocs\php-residence\includes\funzioni_mysql.php on line 79
There are no beds with the requested features (tipologia 2).
ERROR IN: select idappartamenti from appartamenti and numcasa = 'Officers Mess dorm'
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and numcasa = 'Officers Mess dorm'' at line 1
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Documents and Settings\bonny\My Documents\downloads\php-residence\xmapp\xampp\htdocs\php-residence\includes\funzioni_mysql.php on line 79
There are no beds with the requested features (tipologia 3).
-then I 'go back'
-'insert reservation '
ERROR IN: select idappartamenti from appartamenti and numcasa = 'Officers Mess dorm'
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and numcasa = 'Officers Mess dorm'' at line 1
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Documents and Settings\bonny\My Documents\downloads\php-residence\xmapp\xampp\htdocs\php-residence\includes\funzioni_mysql.php on line 79
There are no beds with the requested features (tipologia 3).
-'go back'
-'insert reservation'
..it works
Maybe it has to do with the bedlist.. every time i go back ..step by step ..the bedlist is added to the 'type1' after the seconde go back to type 2....until it works
Thanks for your help