Changeset 257 for trunk/admin/temi/facebook/index.php
- Timestamp:
- Feb 9, 2019, 8:45:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/temi/facebook/index.php
r80 r257 95 95 // Blocco link 96 96 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) { 99 102 echo "</td></tr></table>"; 100 103 echo "</div></td><td>"; … … 103 106 } else { 104 107 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)) { 106 110 if ($title != "" && $content != "") { 107 111 $content = stripslashes($content);
Note:
See TracChangeset
for help on using the changeset viewer.