al hacer un query a la tabla de la base de datos, quiero que me muestre los resultados en una tabla con formato (el formato es dado a la etiqueta td mediante una hoja de estilos). la consulta me sale bien pero no se como hacer que me de formato
Codigo de la consulta
Código PHP:
include '../libreria/dbcon.php';
$query = "SELECT inf_report,inf_buque,inf_cliente FROM informes WHERE inf_estado = 'Pendiente'";
$result = mysql_query($query) or die ('Nones');
while ($row = mysql_fetch_array($result))
{
echo "Report :{$row['inf_report']} <br>" .
"Buque : {$row['inf_asunto']} <br>" .
"Cliente: {$row['inf_cliente']} <br><br>";
}
Código:
<html> <head> <title>Informes</title> <link href="../css/general.css" rel="stylesheet" type="text/css"> </head> <body> <div class="contenedor"> <h1> Estado informes de inspeccion: pendientes</h1> <table width="100%" align="center"> <tr> <td align="center">Report</td> <td align="center">Asunto</td> <td align="center">Cliente</td> </tr> </table> </div> </body> </html>