Ver Mensaje Individual
  #8 (permalink)  
Antiguo 05/05/2011, 14:20
troza
 
Fecha de Ingreso: abril-2011
Mensajes: 53
Antigüedad: 13 años, 11 meses
Puntos: 1
Respuesta: Respuesta Error BD

No pero mira no entiendo asi lo tengo>

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 align="center" bgcolor="#CC00CC" bordercolor="#000000">
<td>Nombre</td>
<td>Infraccion</td>
<?php 
if($cslt != 0) {
while (
$row mysql_fetch_assoc($cslt))  
{  
    echo 
"<tr><td>".$row ['nombre_infractor'] . "</td><td>".$row ['infraccion'] . "</td></tr>";     
}else {
    echo 
"La placa no esta registrada";
    }
}
?> 
</table>
</body>
</html>