I have this array
$pv->orderRecordsArray = array();
foreach($order->records as $i=>$orderRecord){
$pv->orderRecordsArray[] = $orderRecord->orderRecordID;
}
// print_r($pv->orderRecordsArray) for example
// shows Array ( [0] => 46839 [1] => 46840 [2] => 46841 )
I need to use the array values from above in my sql statement below.
$sql = "
SELECT
*
FROM
table1
WHERE
orderRecordID IN (46741, 46742)
";
so infront of IN I want $pv->orderRecordsArray results.
thanks