Hi all,
I am using cakePHP 1.26.
I was trying to update a Table using these lines of code:
$c = "helloworld";
$q="UPDATE user SET avatar='{$c}' WHERE user_id='999999'";
$result=$this->Test->User->query($q);
if($result==true){echo "success";}
else{echo "failed";}
I noticed that the Table was updated successfully, but I still saw the "failed" message.
It seems that the value of $result is neither True nor False.
I have no idea.