hello. I have an array called "results" that holds information from a db query.
for ( $i = 0; $i < $nrows; $i++ )
{
$initial_results[] = $db_results["ITEM_NUMBER"][$i];
}
$results = array_unique($initial_results);
Nothing shocking there. I can loop through the array with foreach and display the item number(s) with no problem.
However, I need to store those resulting item numbers (there are typically one or two) in another table, so I need to assign a variable to them. Echoing the following variables, though, doesn't return anything. Any ideas?
$ext_size_1 = $results[0];
$ext_size_2 = $results[1];
thanks very much.
knelson