Ver Mensaje Individual
  #6 (permalink)  
Antiguo 24/10/2007, 08:31
Avatar de TolerantX
TolerantX
 
Fecha de Ingreso: marzo-2006
Ubicación: Guadalajara, México.
Mensajes: 408
Antigüedad: 18 años, 1 mes
Puntos: 10
Re: SELECT con $_POST

Como te comento imprime el valor de $sql y como dice sergi_climent, utiliza mysql_error para que veas donde estás mal

Por cierto aquí estás mal
Código PHP:
<table>
<?php while($row_consulta mysql_fetch_assoc($consulta)) { ?>
   <tr>
    <td><?php echo $row_consulta["empresa"]?></td>
    <td><?php echo $row_consulta["telefax"]?></td>
    <td><?php echo $row_consulta["ciudad"]?></td>
  </tr>
</table>
  <?php }?>
Quedaría así

Código PHP:
<table>
<?php while($row_consulta mysql_fetch_assoc($consulta)) { ?>
   <tr>
    <td><?php echo $row_consulta["empresa"]?></td>
    <td><?php echo $row_consulta["telefax"]?></td>
    <td><?php echo $row_consulta["ciudad"]?></td>
  </tr>
  <?php }?>
</table>
__________________
TolerantX
http://tolerantx.com
Linux User #385226