Howdi, Its been a while since I touched PHP and im having a problem, I have a really basic login script where the username and password are saved in the script, basically they are stored in an assoc array as follows :- $authorized_users = array ( "bill" => "bill", "guest" => "guest" ); I have now created a table in a MySQL DB and I can connect to it and pull the information from it, however I cannot get the info into the array .. I was thinking of something like this :- $authorized_users = array ( while ($row = mysql_fetch_row($result)) { "$row[0]" => "$row[1]", "guest" => "guest" } ); But obviously the syntax is all wrong, anyway .. hope im making SOME sense ... :-) Thanks Richard