
muestra.php
<?php
$cone=mysql_connect("localhost","usuario","passwor d");
mysql_select_db("mibasedatos",$cone);
$query = "SELECT * FROM Noticias ORDER BY idnoticias ASC";
$resultado = mysql_query($query,$cone) or die (mysql_error());
?>
<html>
<head>
</head>
<body>
<b><u>MUESTRA DE MIS DATOS DE LA TABLA MYSQL</u></b>
<?php
echo '<table border=1 width=250px align=center cellspacing=0 cellpadding=0 bordercolor=darkred>';
while ($columna = mysql_fetch_array($resultado)) {
echo '<tr>';
header( "Content-type: image/jpeg");
echo "<td width=80px>".mysql_result($resultado,0)."</td><td>"; //NO MUESTRA LA FOTO
echo "<p class='misubtitulo'>".htmlentities($columna['titulo'])."</p>";
echo "<p class='mifechasubtitulo'>".$columna['fecha']."</p>";
echo "<p class='noticontenido'>".htmlentities($columna['contenido'])."</p>";
echo '</td>';
echo '</tr>';
}
mysql_free_result($resultado);
echo '</table>';
?>
</body>
</html>
Gracias nuevamente
