Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/05/2008, 19:50
Proguri
 
Fecha de Ingreso: abril-2008
Ubicación: Montevideo - Uruguay
Mensajes: 156
Antigüedad: 16 años
Puntos: 5
Respuesta: consulta Update

Hi !

Código PHP:
$result mysql_query("SELECT * FROM tabla WHERE funcion LIKE 'supervisor'"$link);

while(
$row mysql_fetch_array($result))
{
    
mysql_query("UPDATE tabla2 SET campo='".$row['Sector']."' where apellido like '".$row['Apellido']."'",$link) or die( mysql_error() );


No he cambiado mucho, pero prueba asi, que lo anterior no era necesario totalmente.

Suerte!

-ByE-