Ignore:
Timestamp:
Feb 9, 2019, 8:45:24 PM (5 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/temi/facebook/index.php

    r80 r257  
    9595// Blocco link
    9696
    97 $result = mysql_query("select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid ", $dbi);
    98     if (mysql_num_rows($result) == 0) {
     97        $sql="select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid";
     98        $sth = $dbi->prepare("$sql");
     99        $sth->execute();       
     100        $row = $sth->fetchAll();
     101    if ($sth->rowCount() == 0) {
    99102        echo "</td></tr></table>";
    100103        echo "</div></td><td>";
     
    103106    } else {
    104107        echo "<h5>"._LINK."</h5><p>";
    105         while (list($mid, $title, $preamble,$content,  $editimage) = mysql_fetch_row($result)) {
     108        foreach($row as $row2) {
     109                list($mid, $title,$preamble,$content,$editimage) = explode($row2)) {
    106110                if ($title != "" && $content != "") {
    107111                        $content = stripslashes($content);
Note: See TracChangeset for help on using the changeset viewer.