php record insert via csv upload
hi
my client has set of records generated via third party csv files.
i want create insert statement allows csv file uploaded , mapped fields inserted table.
any ideas?
if there extension better.
thanks
dan
i've done in asp, concepts identical in php. first need create form , write php script upload csv file server. use php file system functions open, loop through, , read each line in file , store values of each row in local variables - execute insert statement using local variables. continue looping through file until done.
you loop through file , extract of data used in 1 single insert statement.
More discussions in Develop server-side applications in Dreamweaver
adobe
Comments
Post a Comment