Jump to content
php.lv forumi

.CSV failu inportēšana


zintis8789

Recommended Posts

zintis8789 --> Ja tabulu struktrua sakriit ( datu tipi etc, un nav japarlasa)

Tad :

smekle klasi kas apstraada .CSV filus ( Neta ir ljoti daudz , izvelies sev tikamako)

un ciklaa, nevis vinjus izvadi uz ekrana, bet sagruud DB ( 1 rindija koda )

--

Diezvai atradisi pilnigi gatavu, jo Tabulu strukturas tachu atskjiraas..

--

Tas vienkarsakais

Sarezgitakais, lasi to .CSV filu pa rindinjam,

ar Explode skaldi pa daljam

talak, to visu gruud DB ..

--

P.S. bet ja ir iespejams tad labak izmanto kaadu arejo Tuuli, kas nav balstiits uz PHP...

Jo tas bus gan atraak , gan efektiifak ( lielakas kontroles iespejas etcc.. )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...