Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/03/2007, 16:58
michelson
 
Fecha de Ingreso: febrero-2006
Mensajes: 208
Antigüedad: 18 años, 2 meses
Puntos: 0
Re: actualizar todos mis registros de una tabla con un do(){}

Hola gracias TolaWare por la respuesta, pero al parecer no es eso o me arroja otro error
mira aqui segui lo que me dijiste

Código PHP:
<?php do { 

$id_foto $row_for['id_foto'];
$foto_galerias =$row_for['foto_galerias'];
$quien =$row_for['quien'];
$quien_galeria =$row_for['quien_galeria'];
$titulo =$row_for['titulo'];
$nombre =$row_for['nombre'];
$id $row_for['id'];

  
$query_for "UPDATE obras_galeria (id_foto, foto_galerias, quien, quien_galeria, titulo,nombre)  VALUES ('$id_foto','$id','$quien','$quien_galeria','$titulo','$nombre')";
$for mysql_query($query_for$conecta_arteenlinea) or die(mysql_error());;
  
   } while (
$row_for mysql_fetch_assoc($for)); ?>
y me arrojo el siguiente error

Código PHP:
You have an error in your SQL syntaxCheck the manual that corresponds to your MySQL server version for the right syntax to use near (id_fotofoto_galeriasquienquien_galeriatitulo,nombre

GrACIAS DE TODAS FORMAS , SEGUIRE INTENTANDO

saludos
__________________
michelson
-----------------
crossing snow mountains with a yamaha bike