The following script returns a result of:
2<br>
7<br>
<?php while ($row_WishList = mysql_fetch_array($WishList)) echo $row_WishList['TrackID'] . '<br>'; ?>
Is there any way to get the result to go into a new array, instead of printing the result?
I would like to get a new array, something like:
$newarray = array(2, 7)
The purpose is to reference it using something like the following which appears in a separate 'do while' function:
if (in_array($row_TrackList['TrackID'], $newarray))....