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"]);
}
}
?> </TD><?
mysql_free_result($result);
mysql_close($link);
?>
</table>
</div>
</body>
</html>