Ok,
I have an array of item ids that is placed into a PHP variable, through a while loop, such as...
while ...{
$array[$c] = $row->itemid;
$c++;
}
Then I need to do a SQL call and include those array elements in the WHERE statement. Currently I got around this by doing a for loop and generating a string (id=1 OR id=2 OR id=4,etc...).
This method seems a bit crude. Is there a more 'native' way of using arrays as part of the WHERE statement?
Thanks...
QuaffAPint