Hello Guys.
I'm trying to make an script to makes the results of an mysql query into an array, for example:
$mysql = mysql_query("SELECT gallery.name FROM gallery");
while ($row = mysql_fetch_row($mysql)){
$g = $row[0];
echo $g.' ';
}
The results will be: gal1 gal2
We need this values be stored in differents variables, like this:
$1 = gal1;
$2 = gal2; etc.
Would you please help me with this script?
Thanks you.
I'm trying to make an script to makes the results of an mysql query into an array, for example:
$mysql = mysql_query("SELECT gallery.name FROM gallery");
while ($row = mysql_fetch_row($mysql)){
$g = $row[0];
echo $g.' ';
}
The results will be: gal1 gal2
We need this values be stored in differents variables, like this:
$1 = gal1;
$2 = gal2; etc.
Would you please help me with this script?
Thanks you.