How to check if a table has been updated in the Zend Framework?

When the user opens the form to change the record, but instead of changing the information, he simply clicks the Refresh button. This causes the update () function to return 0. However, I consider this case a valid update task. How can I check it so that I can assign a successful message?

Is update () return -1 if the SQL query fails or is it also 0?

Method: Zend_Db_Table_Abstract :: update ()

Any ideas?

thank

+3
source share
1 answer

Zend_Db , MySQL. . . , , try/catch. , . , , .

+8

Source: https://habr.com/ru/post/1747548/


All Articles