Adding multiple where clauses
and array contains the multiple values of the where clause. and it will create the correct SQL Statement.
$args = [
'table' => 'tblroundtriptransfer',
'data' => [
$colNameAdults
],
'where' => [
'idCityFrom' => $idCityFromRoundTrip,
],
'and' => [
'idCityTo'=> $idCityToRoundTrip,
],
];
}
$fetch = $db->select($args);
and array contains the multiple values of the where clause. and it will create the correct SQL Statement.
No comments:
Post a Comment