Código PHP:
<?PHP
$cons="SELECT * from tupale ORDER BY ID DESC LIMIT 0,6";
$cons2=mysql_db_query("$db","$cons");
while($rs=mysql_fetch_array($cons2)){
$resumen = limitarPalabras($rs['CONT'],90);
echo "<a href=\"".$rs['FURL'].".html\"><h2>".$rs['TITULO']."</h2></a>";
echo "<div class=\"left_box\"> <img src=\"data/img/thumb-".$rs['IMG']."\" class=\"image\" alt=\"Big Image\" />";
$resumen = strip_tags($resumen);
echo "<p>".$resumen."</p>";
echo "<p> Autor: Kalvin Manson Fecha: ".$rs['FECHA']." </p>";
echo separartags($rs['TAGS']);
}
?>
Cita:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kalvin/public_html/files/portada.php on line 4