Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/05/2011, 21:46
troza
 
Fecha de Ingreso: abril-2011
Mensajes: 53
Antigüedad: 13 años
Puntos: 1
Pregunta Impresion tabla PHP

Hola tengo este codigo pero no se como hacer para que el resultado que me esta imprimiendo me lo imprima en los espacios de las tablas...Aclaro lo que imprime son unos datos que me trae de la base de datos aca les dejo lo que hecho
Código PHP:
<?php
include('conexion.php');
$placas $_POST['placa']; 
$cslt mysql_query("SELECT nombre_infractor, infraccion FROM datos WHERE placa = '$placas'");
while (
$row mysql_fetch_assoc($cslt))
{
    print 
$row ['nombre_infractor'] . "<br>";
    print 
$row ['infraccion'] . "<br>";
    }
?>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RESULTADOS</title>
</head>

<body>
<table border="1">
<tr>
<td>Nombre</td>
<td>Infraccion</td>
</tr>
<td><?php  ?></td>
<td><?php  ?></td>
</table>
</body>
</html>
Gracias de antemano