Changeset 336 for trunk/admin/temi
- Timestamp:
- Sep 23, 2020, 11:32:27 AM (4 years ago)
- Location:
- trunk/admin/temi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/temi/default/index.php
r256 r336 18 18 $sth->execute(); 19 19 $row = $sth->fetch(PDO::FETCH_BOTH); 20 $descr_consultazione=$row[0]; 20 if($sth->rowCount()) 21 $descr_consultazione=$row[0]; 22 else 23 $descr_consultazione=''; 21 24 $sql="select descrizione from ".$prefix."_ele_comuni where id_comune='$id_comune'"; 22 25 $sth = $dbi->prepare("$sql"); 23 26 $sth->execute(); 24 27 $row = $sth->fetch(PDO::FETCH_BOTH); 25 $descr_comune=$row[0]; 28 if($sth->rowCount()) 29 $descr_comune=$row[0]; 30 else 31 $descr_comune=''; 26 32 27 33 echo "<div class=\"container\"><table width=\"95%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table-main\"> -
trunk/admin/temi/facebook/menu.php
r257 r336 58 58 $sth->execute(); 59 59 $row = $sth->fetch(PDO::FETCH_BOTH); 60 $esiste_multi= mysql_num_rows($rescomu);60 $esiste_multi=$sth->rowCount(); 61 61 if ($esiste_multi>=1) { 62 62 echo " <li> … … 129 129 ***********************************/ 130 130 131 $res = mysql_query("SELECT count(0) FROM ".$prefix."_ele_circoscrizione where id_cons='$id_cons' ", $dbi);132 131 $sql = "SELECT count(0) FROM ".$prefix."_ele_circoscrizione where id_cons='$id_cons'"; 133 132 $sth = $dbi->prepare("$sql");
Note:
See TracChangeset
for help on using the changeset viewer.