Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. CSV and WordPress

CSV and WordPress

Scheduled Pinned Locked Moved ASP.NET
questionphpdatabasemysqlregex
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Davstr
    wrote on last edited by
    #1

    Beginner asking a question before he makes a recommendation to his boss!!! I have been tasked with fixing a database issue for my company and I need to ensure I am on the right track so I am asking here for confirmation. Our current process is we use two forms for input into our database. A registration form on Wordpress and a Facebook leads form We take the information from there and we input it into Zoho and a Mysql database behind a Wordpress web portal. The file format we use is CSV. My understanding of CSV is that the data fields have to match the database table. If there is a column mismatch between the file and the database, data will go into the wrong field unless it is processed in some form to move the column in the CSV file. That is my understanding. Am I correct in this? So, if my above assumption is correct, then it would be logical that the forms used would need to be standardised in order to ensure the data format is standardised. Please let me now if I am on the right track with this. Thanks

    M 1 Reply Last reply
    0
    • D Davstr

      Beginner asking a question before he makes a recommendation to his boss!!! I have been tasked with fixing a database issue for my company and I need to ensure I am on the right track so I am asking here for confirmation. Our current process is we use two forms for input into our database. A registration form on Wordpress and a Facebook leads form We take the information from there and we input it into Zoho and a Mysql database behind a Wordpress web portal. The file format we use is CSV. My understanding of CSV is that the data fields have to match the database table. If there is a column mismatch between the file and the database, data will go into the wrong field unless it is processed in some form to move the column in the CSV file. That is my understanding. Am I correct in this? So, if my above assumption is correct, then it would be logical that the forms used would need to be standardised in order to ensure the data format is standardised. Please let me now if I am on the right track with this. Thanks

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Yes you are on the correct track with this info. If you are importing directly from the CSV then the file format MUST match the database fields. You could write a parser which does the importing for you, this would give you an opportunity to trap crappy data before it hits your DB. CSV has some gotchas, if it is not well formed, dealing with commas in the data, then you are in big trouble. "Form" implies a standardised format otherwise it is just free form text.

      Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups