Changeset 326 for trunk/admin/modules/Elezioni/salva_ref.php
- Timestamp:
- Feb 8, 2020, 2:46:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/salva_ref.php
r262 r326 38 38 if (isset($_GET['votinulli'])) $votinulli=intval($_GET['votinulli']); else $votinulli='0'; 39 39 if (isset($_GET['id_comune'])) $id_comune=intval($_GET['id_comune']); else $id_comune='0'; 40 if (isset($_GET['ops'])) $ops=intval($_GET['ops']); else $ops=' 0';40 if (isset($_GET['ops'])) $ops=intval($_GET['ops']); else $ops='4'; 41 41 if (isset($_GET['delete'])) $delete=intval($_GET['delete']); else $delete=''; 42 42 if (isset($_GET['circo'])) get_magic_quotes_gpc() ? $circo=$_GET['circo']:$circo=addslashes($_GET['circo']); else $circo=''; … … 64 64 ################## 65 65 if($do==1) { 66 $sql="delete from ".$prefix."_ele_ voti_ref where id_cons='$id_cons' and id_sez='$id_sez'";66 $sql="delete from ".$prefix."_ele_gruppo where id_cons='$id_cons'"; 67 67 $res = $dbi->prepare("$sql"); 68 68 $res->execute(); 69 69 }else{ 70 70 71 $sql="select num_gruppo from ".$prefix."_ele_ voti_ref where id_cons='$id_cons' and id_sez='$id_sez'";71 $sql="select num_gruppo from ".$prefix."_ele_gruppo where id_cons='$id_cons'"; 72 72 $result = $dbi->prepare("$sql"); 73 73 $result->execute();
Note:
See TracChangeset
for help on using the changeset viewer.