Maybe toomuch beer yesterday night.
if I have
$query = "SELECT id FROM single_product ";
$result = mysql_query($query);
$num = mysql_num_rows($result);
for($i=0;$i< $num;$i++){
$row = mysql_fetch_array($result);
$number = $row[0];
$array=array($number,$i);
}
print_r($array);
Of course only the last values are added to the array.
Can't figure how all the values in my cycle could be added to the array.
Sorry.
Thanks.