I’d like to write the following SQL update query with Zend Framework:
UPDATE my_table
SET my_field
WHERE name = 'John'
AND (other_field = 'foo' OR other_field = 'bar')
How to do this with Zend Framework?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you have a Model file for my_table ..if not create one inside your model directory.
just call in any action like this