Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/12/2007, 01:35
Avatar de Kelpie
Kelpie
 
Fecha de Ingreso: febrero-2002
Ubicación: NorthSpain
Mensajes: 609
Antigüedad: 22 años, 2 meses
Puntos: 8
Re: Ayuda Con Consulta

¿Dónde pones el <?php echo $contrato ?>?
Debes ponerlo dentro del While, si no solo te imprimirá el último valor que hayas recuperado de la base:

Código PHP:
while ($row mysql_fetch_array($result))
{
  
$contrato $row["CONTRATO"];
  
$folio $row["CONTRATO"];
  
$fechacorte $row["FECHACORTE"];
  
$nombre $row["NOMBRE"];
  
$calle $row["CALLE"];
  
$bimestre $row["BIMESTRE"];
  
$lanterior $row["LECTURAINICIAL"];
  
$lactual $row["LECTURAFINAL"];
  
$consumo $row["CONSUMO"];
  
$suministro $row["SUMINISTRO"];
  echo (
$contrato);  //<-- Aquí, por ejemplo

?>
__________________
Kelpie