Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/07/2005, 10:49
byzard
 
Fecha de Ingreso: agosto-2003
Ubicación: santiago, chile
Mensajes: 303
Antigüedad: 20 años, 8 meses
Puntos: 0
saludos..
no creo q este mal las tablas y la coneccion si funciona
http://www.melquisedec.cl/phpready/conectarse.php

intente colocando mysql_fetch_row, igual no me sale


noticia.php
Código:
 <?php
include("conec.php");
$link=Conectarse();
$result=mysql_query("select * from noticias",$link);

?>
</H1>
<div align="center">
	  <TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1>
	  <TR><TD><strong>NOTICIAS</strong></TD>


<?php		
while($row = mysql_fetch_row($result)) {
?><TR><TD><?

if($row["imagen"] == "") { 
echo $row["contenido"]; 
}else { 


echo "<img src=".$row['imagen']." height=120 width=120 border=1>"; 
printf($row["contenido"]);


}
}
?>&nbsp;</TD><?
mysql_free_result($result);
	mysql_close($link);
?>
  
    </table>
</div>
</body>
</html>