after pulling out some fields from my database i'm trying to manipulate them in to a array. However the output is always a string.
$query="SELECT file_name, ext FROM $table_name[$i]";
$result[$i]=mysql_query($query)or die("Error: " . mysql_error());
$files_mysql = array();
$x=0;
while ($row = mysql_fetch_array($result[$i])){
$files_mysql[$x] = "$row[0]". "." . "$row[1]";
$x++;
}
output:
xeethra.gifwarewolf.jpgselected.jpghyperbor.jpghyp-fp.giflotus_moon.gifpenningtron-lworlds-brucep05.jpgschizoid_creator.jpgsmith1960.jpgzoth-map.gif
i want
$files_mysql[0]
0 => xeethra.gif
1 => warewolf.jpg
etc..