[PHP] function not returning value

2002-04-30 Thread Mark Pelillo
Why would the following function not return a value: (both $lastname and $firstname are defined) function get_handle($lastname, $firstname) { $handle_guess=$lastname; $handle=array(); $fp=fopen('../truelies/userdb', "r"); while ($d=fgetcsv($fp, 250, ";")) { $handle[] = $d[0];

[PHP] array question--help

2002-04-27 Thread Mark Pelillo
I am a Newbie at PHP I am sure I am missing something small but... I am trying to create a form selection box which an alphabetically sort list of a unix group file. The group file has the format groupname::groupnumber: I have tried to create an array using the array=fgetcsv($fp, 30, ":") whi