| . |
$sqlh="select * from historias order by idhistorias desc limit 0,3";
$resh=mysql_query($sqlh,$link)or die("error seleccionando el registro");
$rowh=mysql_fetch_array($resh);
?>
-
echo $rowh["titulo_historias"]?>
echo substr(str_replace("\r"," ",$rowh["texto_historias"]),0,200); ?>
$rowh=mysql_fetch_array($resh);
?> -
echo $rowh["titulo_historias"]?>
echo substr(str_replace("\r"," ",$rowh["texto_historias"]),0,200); ?>
$rowh=mysql_fetch_array($resh);
?>
-
echo $rowh["titulo_historias"]?>
echo substr(str_replace("\r"," ",$rowh["texto_historias"]),0,200); ?>
|
|
$sqln="select * from noticias order by idnoticias";
$resn=mysql_query($sqln,$link)or die("error seleccionando el registro");
if($resn!=""){
while($rown=mysql_fetch_array($resn))
{
?> - echo substr($rown["titulo_noticias"],0,40)?>
}}
?>
|
. |