by devppl on Tue Mar 07, 2006 5:23 am
hello every body ,
i want to import csv file in that case suppose i have made all script for insertion in database records but the problem is that there is number of files like yahoo,gmail,rediffmail
if that file contains
Name,E-mail Address,Notes,E-mail 2,E-mail 3,Mobile Phone,Pager,Company,Job Title,Home Phone,Home Phone 2,Home Fax,Home Address,Business Phone,Business Phone 2,Business Fax,Business Address,Other Phone,Other Fax,Other Address
Test Name,Test@mail.com,,,,,,,,,,,,,,,,,,
while reading csv files it take all fields in one row
so i want to store first line of the file
like as $Name
$E-mail Address,
like that and for next row i can assign
$Name=$Test Name;
is it possible ,
Please send me reply as early as possible
Thanks
DEVPPL