Changeset 282 for trunk/client/temi/tour/index.php
- Timestamp:
- Apr 21, 2019, 9:46:30 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/temi/tour/index.php
r212 r282 61 61 if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); else $id_comune=$siteistat; 62 62 63 $res = mysql_query("SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi); 64 list($descr_com) = mysql_fetch_row($res); 63 $sql="SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' "; 64 $res = $dbi->prepare("$sql"); 65 $res->execute(); 66 list($descr_com) = $res->fetch(PDO::FETCH_NUM); 65 67 66 68 … … 163 165 // Blocco link 164 166 165 $result = mysql_query("select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid ", $dbi); 166 if (mysql_num_rows($result) == 0) { 167 $sql="select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid "; 168 $result = $dbi->prepare("$sql"); 169 $result->execute(); 170 if ($result->rowCount() == 0) { 167 171 //echo "</div></td></tr></table>"; 168 172 … … 171 175 } else { 172 176 echo "<h5>"._LINK."</h5><p>"; 173 while (list($mid, $title, $preamble,$content, $editimage) = mysql_fetch_row($result)) {177 while (list($mid, $title, $preamble,$content, $editimage) = $result->fetch(PDO::FETCH_NUM)) { 174 178 if ($title != "" && $content != "") { 175 179 $content = stripslashes($content);
Note:
See TracChangeset
for help on using the changeset viewer.