<html>
<head>
<link rel="stylesheet" type="text/css" href="../css/pagina.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Gobierno Regional Moquegua</title>
<h4 align="center" class="t2">PUBLICACIONES</h4>
<p>
<?php
$link = mysql_connect("localhost", "root","");
mysql_select_db("bdregion2", $link);
$result = mysql_query("SELECT idpublicaciones, titulo, publicacion, fecha FROM publicaciones;", $link);
if ($row = mysql_fetch_array($result)){
echo "<table border = '0' > \n";
do {
echo "<table width='600' border='1' >
<tr>
<td class='t1'>Nro:</td>
<td class='t9'>".$row["idpublicaciones"]."</td>
</tr>
<tr>
<td class='t1'>Titulo:</td>
<td class='t9'>".$row["titulo"]."</td>
</tr>
<tr>
<td class='t1'>Fecha</td>
<td class='t9'>".$row["fecha"]."</td>
</tr>
<tr>
<td></td>
<td class='t9'>".$row["publicacion"]."</td>
</tr>";
} while ($row = mysql_fetch_array($result));
echo "</table> \n";
} else {
echo "¡ No se ha encontrado ningún registro !";
}
?>
</p>
</body>
</html>
Eso funciona bien lo que quiero probar ahora es partir el codigo 2, en un conex y en un formulario para llamar el conex en cada formulario en que lo necesite, he estado probando pero no lo he logrado quiesiera saber si me pueden ayudar con esto gracias de antemano.
![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif)