Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/05/2011, 00:56
Avatar de Bytevamp
Bytevamp
 
Fecha de Ingreso: junio-2005
Ubicación: /var/www/
Mensajes: 789
Antigüedad: 18 años, 10 meses
Puntos: 7
Respuesta: Impresion tabla PHP

Cambia el while de sitio:

Código PHP:
<?php 
include('conexion.php'); 
$placas $_POST['placa'];  
$cslt mysql_query("SELECT nombre_infractor, infraccion FROM datos WHERE placa = '$placas'"); 
?> 

<!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> 
<?php
while ($row mysql_fetch_assoc($cslt)) 

    echo 
"<tr><td>".$row ['nombre_infractor'] . "</td><td>".$row ['infraccion'] . "</td></tr>"

?>
</table> 
</body> 
</html>
Un saludo.
__________________
"zankius veri mach" a todos los que me habeis ayudado.
carteles para inmobiliarias || alquiler de coches