HTML:
Código:
table.articulo{
border: 1px solid #006699;
}
Código PHP:
$conn = mysql_connection("localhost", "root", "")or die(mysql_error());
$selectDB = mysql_select_db("database")or die(mysql_error());
$query = mysql_query("SELECT titulo,subtitulo,parrafo,id FROM table where id = ".$id)or die(mysql_error());
$result = mysql_fetch_array($query);
if($query && $result){
echo "<table class='articulo'>
<tr>
<td>
echo $result["titulo"];
</td>
</tr>
<tr>
<td>
$result["parrafo"];
</td>
</tr>
</table>";
}