prepare("$sql"); $res->execute(); if ($res->rowCount() == 0) { return; } else { echo "
";
while (list($mid, $title, $preamble,$content, $editimage) = $res->fetch(PDO::FETCH_NUM)) {
if ($title != "" && $content != "") {
$content = stripslashes($content);
$content = substr($content,0,45);
echo "$title
$content";
}
}
}
?>