For MySql 5.0 and above
Add approved boolean column to book table.
Create a database triggers  on book table for before insert and before
update
The user that save the data will always send approved = 0
Both triggers check for the approved value, if it's 0 the trigger will not
save the data and insert the data to admin_book
if the approve value is 1, which it should be when the admin approve the
data, the data should be save.
You also need the admin_book model for the admin to approvde data.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to