if ($idm=="")
{
$bportada="select * from portada order by id asc";
$bportada2=mysql_query ($bportada);
$bportada3=mysql_num_rows ($bportada2);
for ($bp=0; $bp<$bportada3; $bp++)
{
$bpid=mysql_result ($bportada2, $bp, "id");
$bptexto=mysql_result ($bportada2, $bp, "texto");
$bpimagen=mysql_result ($bportada2, $bp, "imagen");
echo ("
");
echo ("
");
echo ("

");
echo ("
");
echo ("
");
echo ($bptexto);
echo ("
");
echo ("
");
}
}
else
{
include ("contenido.php");
}
?>
$bnoti="select * from noticias order by id desc";
$bnoti2=mysql_query ($bnoti);
$bnoti3=mysql_num_rows ($bnoti2);
for ($bnot=0; $bnot<$bnoti3; $bnot++)
{
$bnotid=mysql_result ($bnoti2, $bnot, "id");
$bnottexto=mysql_result ($bnoti2, $bnot, "texto");
$bnotimagen=mysql_result ($bnoti2, $bnot, "imagen");
echo ("

");
echo ("
$bnottexto
");
}
?>