![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/01/2011, 19:48
|
![Avatar de Ronruby](http://static.forosdelweb.com/customavatars/avatar249338_1.gif) | | | Fecha de Ingreso: julio-2008 Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 16 años, 6 meses Puntos: 416 | |
Respuesta: Ayuda a verificar datos al editar un registro... Se supone que cada categoria tiene su ID, entonces la logica seria hacer lo siguiente:
Si ya existe el registro con ese nombre y el ID es igual al actual, hacer el cambio
Si existe el registro con el mismo nombre pero el ID es diferente, no permitir el cambio |