troubleshooting Question

load data from txt to mysql db

Avatar of eduardo12fox
eduardo12foxFlag for Brazil asked on
PHP
3 Comments1 Solution546 ViewsLast Modified:
I have a file in the format

using notepad + + to see the need to get data from column 13 to 31 and column 36 to 46 and 96 to 120

need to do it line by line to insert into mysql db

help me!
#DCC##EMB#0 052 551800003200 9"    28/04/1990   3-EMPRESARIAL     ENFERMARIA        31/12/2012"ANA PAULA AGUIAR PEREIRA      01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#ANA PAULA AGUIAR PEREIRA ;00525518000032009=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003300 5"    18/07/1988   3-EMPRESARIAL     ENFERMARIA        31/12/2012"NATHALIA PINHEIRO COSTA       01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#NATHALIA PINHEIRO COSTA  ;00525518000033005=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003400 1"    06/02/1984   3-EMPRESARIAL     ENFERMARIA        31/12/2012"SUELEN BRAGA                  01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#SUELEN BRAGA             ;00525518000034001=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003500 8"    08/05/1989   3-EMPRESARIAL     ENFERMARIA        31/12/2012"LUIZ EDUARDO C GONCALVES      01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#LUIZ EDUARDO C GONCALVES ;00525518000035008=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003600 4"    19/07/1991   3-EMPRESARIAL     ENFERMARIA        31/12/2012"EVELYN DA SILVA ANDRADE       01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#EVELYN DA SILVA ANDRADE  ;00525518000036004=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003700 0"    02/01/1986   3-EMPRESARIAL     ENFERMARIA        31/12/2012"IVAN SERGIO M DE PAULA        01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#IVAN SERGIO M DE PAULA   ;00525518000037000=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025
#DCC##EMB#0 052 551800003800 7"    17/12/1988   3-EMPRESARIAL     ENFERMARIA        31/12/2012"JULIANA E V DE SOUZA          01"0052    AMB-ENF-OBS          GRUPO DE MUNICIPIOS NAO HA            INGRESSO TOTAL    "#ENC#JULIANA E V DE SOUZA     ;00525518000038007=011212=005205643000?#END#@@@@@@PRODUTO REGULAMENTADO     440013025

Open in new window

ASKER CERTIFIED SOLUTION
Ivan Kulchytskyi-Kostyk
Ivan Kulchytskyi-Kostyk (kivan24)

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros