
31/10/2008, 10:10
|
| | Fecha de Ingreso: octubre-2008
Mensajes: 76
Antigüedad: 16 años, 4 meses Puntos: 3 | |
Problema ayudar urgente por favor POR FAVOR SI ALGUIEN ME PUEDE AYUDAR TENGO EL SIG ERROR
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/igaco/public_html/Ar/1/noticias.php on line 38
ES UN PANEL DE NOTICIAS QUE ESTA EN LA WEB PERO NO SE
EL CODIGO ES EL SIGUIENTE
<?php require_once('../../Connections/ivan.php'); ?>
<link href="estilos.css" rel="stylesheet" type="text/css">
<link href="../estilos.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style4 {font-size: small}
body {
background-color: #FFFFFF;
margin-left: 20px;
margin-top: 0px;
}
#Layer1 {
position:absolute;
left:44px;
top:73px;
width:143px;
height:107px;
z-index:1;
}
.Estilo1 {font-size: 7pt}
body,td,th {
color: #000000;
}
-->
</style>
<title>Noticias</title><body>
<marquee direction="up" onmouseout="start()" onmouseover="stop()" scrolldelay="100"
scrollamount="2">
<div>
<p align="center">
<span> </span>
<?
$sql="SELECT * FROM news ORDER BY fecha DESC";
$resultado=mysql_query($sql);
if(mysql_num_rows($resultado)>=1){
while ($row=mysql_fetch_array($resultado)){
print("<b><font size=1><strong>".$row["fecha"]."</font></b><br></strong>");
if ($row["titulo"]!="") echo "<b><font size=1>".$row["titulo"]."</b><br></font>" ;;
if ($row["resumen"]!="") echo $row["resumen"]."<br>";
echo "<img src='puntosgris.gif'><br>\n";
}
//echo "<a href='novedades.php'>Todos los titulares</a>";
} else {
echo "<p>No se encontraron noticias.</p>";
}
?>
</p>
</div>
SI ALGUIEN ME PUEDE AYUDAR AGRADECERIA... |