Re: [PHP] splitting arrays

2004-11-18 Thread Afan Pasalic
$sql="select * from users"; $result="mysql_query($sql) or die (mysql_error()); while($array=mysql_fetch_array($result)) { array1[]=$array['name']; array2[]=$array['picture']; } Reinhart Viane wrote: hey all, I have a question concerning arrays. Folowing situation: usertable $sql="s

[PHP] splitting arrays

2004-11-18 Thread Reinhart Viane
hey all, I have a question concerning arrays. Folowing situation: usertable $sql="select * from users"; $result="mysql_query($sql) or die (mysql_error()); $array=mysql_fetch_array($result); Now this give me an array, i can get specific information with array['username'] What i need to do