Mi connetto ad un db, selezione una tabella e poi ho questo codice:
$query = "SELECT name FROM tbl_images WHERE category = 'stazione' LIMIT 0, 10";
//echo "Query: $query
";
$stmt = mysql_query($query);
$images_name = array();
$i=0;
while($temp = mysql_fetch_row($stmt)){
$images_name[$i] = $temp;
$i++;
}
echo "
$images_name[0]";
La query e' perfetta ma mi stamppa "Array" e non il primo valore del mio array.
Dove sbaglio?