I have an array $order_mealsInfo_ids which has the values like this
[{"meal_id":"33"},{"meal_id":"34"}]
Both the meal_id "33" and "34" has the same values(store_name,franchise_id,order_datetime) so I only want to get those values once that's why I am using distinct keyword.I want to use $order_mealsInfo_ids in my query,My query is :
$get_franchise_info="Select distinct store_name,franchise_id,order_datetime from order_main where id
IN (".implode(',',$order_mealsInfo_ids['meal_id']).")";
But its giving this error:
Notice: Undefined index: meal_id in C:\xampp\htdocs\learning\service\get_pending_orders_news.php on line 94
Warning: implode(): Invalid arguments passed in C:\xampp\htdocs\learning\service\get_pending_orders_news.php on line 94