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 syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near (id_foto, foto_galerias, quien, quien_galeria, titulo,nombre)
GrACIAS DE TODAS FORMAS , SEGUIRE INTENTANDO
saludos