Validate MySQL DELETE
Posted 11 September 2006 - 04:58 PM
I got an issue in the week and i'm trying get some help to solve him.
Well, the question is:
I have a group of records in a table and the user need to pick some of them to be removed from de database. Some of the records cannot be removed cause they are required from other tables (FK's), so i need to validate them. I have autocommit on in the database configuration, but i tried do set him off just to use the "affected_rows" property after a DELETE and getting the number of rows affected. It keeps me returning null after the DELETE.
How can i solve this question? If not what is the alternative?
Thank you for the help.
Posted 11 September 2006 - 05:13 PM
Info: PHP Manual
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users