![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/08/2007, 14:39
|
| | Fecha de Ingreso: abril-2002 Ubicación: las condes
Mensajes: 184
Antigüedad: 22 años, 9 meses Puntos: 1 | |
Re: problemas al pasar a mysql tengo el mismo problema con la actualizacion de registros
db_query("UPDATE tbjugadores SET numpolera=".$_POST["numpolera"]." , nombre='" . make_safe($_POST['nombre']) . "' , apellidos='" . make_safe($_POST['apellidos']) . "' , rut='" . make_safe($_POST['rut']) . "' , direccion='" . make_safe($_POST['direccion']) . "' , comuna='" . make_safe($_POST['comuna']) . "' , ciudad='" . make_safe($_POST['ciudad']) . "' , fecha='$fecha_sql', email='" . make_safe($_POST['email']) . "' , phone='" . make_safe($_POST['phone']) . "' WHERE id=".$_POST['id']);
redirect('jugadores.php');
}
se supone que debo poner el phone='" . make_safe($_POST['colegio]) . " despues de phone y antes del where pero no logro que me funcione me da este error The following error has ocurred: 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 '' WHERE id=8' at line 1
no se pero en el caso anterior me funciono perfecto todo. muchas gracias
__________________ Juan Pablo Sánchez |