5 months ago

How to update field without primary key in cakephp2?

Posted 5 months ago by surandra

I have used raw query

$save= $this->Location->query('UPDATE location SET location ="'.$loc.'" WHERE location ="'.$old_loc.'" AND custid="'.$custId.'"');

This query update my field but $save return empty array.

How to check it or any another way to update field.

Please sign in or create an account to participate in this conversation.