In cakephp, I used $rNo array in WHERE clause.
$rooms =$this->find('all',array(
'conditions'=>array("NOT"=>array('Room.id'=>$rNo)),
'group'=>array('Room.room_type_id')));
Now, I wanan use query statment by using array in where clause.
How can I use? Please explain me!
SELECT * FROM room WHERE id = **array**
I wanna know about this array. How to use?
Standard usage (don’t know about cakePHP much):
Be careful, check you PHP array is not empty because
raises a MySQL error