Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/08/2010, 15:57
Avatar de maycolalvarez
maycolalvarez
Colaborador
 
Fecha de Ingreso: julio-2008
Ubicación: Caracas
Mensajes: 12.120
Antigüedad: 16 años, 6 meses
Puntos: 1532
Respuesta: Problema con el Select

pues tendrás que armar y ejecutar 1 sql por cada campo, usando mysql_num_fields y mysql_fetch_field, tal como en el ejeplo #1 del manual: http://www.php.net/manual/es/functio...etch-field.php con el objetivo de que obtengas esto:

UPDATE table SET campo1='valor' WHERE campo1='xxx';
UPDATE table SET campo2='valor' WHERE campo2='xxx';
etc.