Changeset 336 for trunk/admin/modules/Elezioni/ele_affluenze.php
- Timestamp:
- Sep 23, 2020, 11:32:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_affluenze.php
r256 r336 126 126 $orario="$ov:$mv:00"; 127 127 $row = daticonsultazione(); 128 # mysql_query("SELECT data_inizio, data_fine FROM ".$prefix."_ele_consultazione WHERE id_cons_gen ='$id_cons_gen'", $dbi); 129 $dadata=$row['data_inizio']; $adata=$row['data_fine']; 130 $dadata=strtotime($dadata); 131 $adata=strtotime($adata); 132 $cdata=strtotime($data); 128 $dadata=$row['data_inizio']; $adata=$row['data_fine']; 129 $dadata=strtotime($dadata); 130 $adata=strtotime($adata); 131 $cdata=strtotime($data); 133 132 // verifica se data e ora esiste e fa l'upgrade 134 133 $sql = "select * from ".$prefix."_ele_rilaff where id_cons_gen='$id_cons_gen' and data='$data' and orario='$orario'"; 135 134 $sth = $dbi->prepare("$sql"); 136 135 $sth->execute(); 137 # $row = $sth->fetchAll();138 136 $tipo= $sth->rowCount(); 139 137 if(($tipo==0) and ($dadata <= $cdata) and ($adata >= $cdata)){
Note:
See TracChangeset
for help on using the changeset viewer.