how to get values of array out

somen00b2

New Member
I have this array \[code\]$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 )\[/code\]I need to use the array values from above in my sql statement below. \[code\]$sql = " SELECT * FROM table1 WHERE orderRecordID IN (46741, 46742) ";\[/code\]so infront of IN I want $pv->orderRecordsArray results.thanks
 
Back
Top