J
|
Jane 10/22/2008 |
answered in your personal email. |
M
|
maxcolo author 10/22/2008 |
Hi Jane, |
J
|
Jane 10/23/2008 |
Massimo, global $dal; //select sum of coperti $str = "select sum(coperti) as sum_coperti from reservation where data='".$values["data"]."' and id_position=".$values["id_position"]; $rs = CustomQuery($str); $data = db_fetch_array($rs); //select total seats $rs2 = $dal->position->Query("id_position=".$values["id_position"],""); $data2 = db_fetch_array($rs2); if ($data["sum_coperti"]+$values["coperti"]<$data2["total_seat"]) return true; else return false; |
M
|
maxcolo author 10/24/2008 |
I have corrected some things and control finally works. |
J
|
Jane 10/24/2008 |
Here is a sample: echo "<p align=center>".$data2["posti_totali"]."</p>"; |
M
|
maxcolo author 10/25/2008 |
Hi Jane, |