Hi all,
If i have the following query:
$sql = "select special_prod_list from cart_special_products where special_prod_id='".$_GET['special_prod_id']."'";
$sql_result = mysql_query($sql) or die ("Could not select data");
while ($row = mysql_fetch_array($sql_result)){
$special_prod_list = unserialize(base64_decode($row['special_prod_list']));
print_r ($special_prod_list);
}
which produces
Array ( [0] => Array ( [2] => Array ( [0] => 4 ) ) [1] => Array ( [3] => Array ( [0] => 3 ) ) [2] => Array ( [4] => Array ( [0] => 2 ) ) )
how can i construct my foreach statement to echo the results like:
2,4
3,3
4,2
Cheers