Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/05/2008, 08:11
emarkitus
 
Fecha de Ingreso: mayo-2008
Mensajes: 28
Antigüedad: 15 años, 11 meses
Puntos: 0
if dentro del while no rula...

quiero hacer esto:

y no puede estar el if fuera ya que antes me esta mostrando los valores en un text area

Código PHP:
$query2 ="select imei, modelo, compania from `imeis` where `distribuidor`='$distribuidor' AND `Estado`='En Espera' AND `tipo`='$tipo' and `Processando`='0';";
$resultat2=mysql_query($query2);
while (
$row mysql_fetch_row($resultat2)){ 
if(isset(
$_POST['Processando'])){
$imei=trim($row[0]);
$sqlupd="UPDATE imeis SET `Processando`='1' where `imei`='$imei' AND `tipo`='$tipo' AND `Estado`='En Espera'";
echo 
$sqlupd;
mysql_query($sqlupd);
}