Ignore:
Timestamp:
Apr 13, 2019, 8:05:15 PM (6 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/blocchi/bloccolink.php

    r249 r265  
    33
    44global $genere,$id_cons_gen,$id_cons,$id_comune,$prefix,$dbi;
    5 $result = mysql_query("select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid ", $dbi);
    6     if (mysql_num_rows($result) == 0) {
     5        $sql="select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid ";
     6        $res = $dbi->prepare("$sql");
     7        $res->execute();
     8
     9    if ($res->rowCount() == 0) {
    710        return;
    811    } else {
    912        echo "<h5>"._LINK."</h5><p>";
    10         while (list($mid, $title, $preamble,$content,  $editimage) = mysql_fetch_row($result)) {
     13        while (list($mid, $title, $preamble,$content,  $editimage) = $res->fetch(PDO::FETCH_NUM)) {
    1114                if ($title != "" && $content != "") {
    1215                        $content = stripslashes($content);
Note: See TracChangeset for help on using the changeset viewer.