How to pass Multiple variable in array in where clause?
How to pass Multiple variable in array in where clause?
aruncraftsion
Posts: 3Questions: 3Answers: 0
////////// array values///////////////////
$empid=array(600001,600011,600021,600031,);
->where(function ( $q ) use($empid) {
$q->where('ZIPCODE_MAILINGADDRESS', $empid, '=');
})
This discussion has been closed.
Answers
Use WHERE...IN. Example here:
https://datatables.net/forums/discussion/43542