Ver Mensaje Individual
  #9 (permalink)  
Antiguo 24/10/2007, 08:41
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: SELECT con $_POST

Prueba esto:
Código PHP:
$a=trim($_POST['Ciudad']);
$sql "SELECT empresa, telefax, ciudad FROM empresas WHERE ciudad='$a'";
echo 
$sql."<br>"
Saludos.