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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support