coolest_coder
11-12-2008, 09:57 AM
Hello everyone,
I am reading a .csv file:
<?php
$file = fopen("groups.csv","r");
while(!feof($file))
{
$groups2 = fgetcsv($file,",");
print_r($groups2);
}
fclose($file);
?>
The file is read successfully. But now i need to call this file in another file and the groups fetched from this file are to be placed in a select field of the form.
Can anyone please help me how to do this?
Thank you.
I am reading a .csv file:
<?php
$file = fopen("groups.csv","r");
while(!feof($file))
{
$groups2 = fgetcsv($file,",");
print_r($groups2);
}
fclose($file);
?>
The file is read successfully. But now i need to call this file in another file and the groups fetched from this file are to be placed in a select field of the form.
Can anyone please help me how to do this?
Thank you.