Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2005
    Location
    Beaverton, Oregon
    Posts
    18
    Plugin Contributions
    0

    Default Question for a MYSQL Guru

    Im sorry if this is a way off question but someone asked me and I'd hate to tell them no not knowing for sure..
    Anyways... Can an excel file be imported into a database, for example.. Zencart, lol threw phpmyadmin? I figuring no but I thought Id ask in case it will some weird way. A customer has her catalog in a excel spreadsheet and wanted to import it into zen cart...
    Thanks

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Question for a MYSQL Guru

    It is possible: the easiest way is to simply use a concatenate formula to output an sql query string.

    I posted a response that included an example of how to do it in this post a few months back.

    I'm sure you'll find more examples if you put 'concatenate' into the search box at the top of this forum.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    May 2005
    Location
    Cheshire, UK
    Posts
    542
    Plugin Contributions
    3

    Default Re: Question for a MYSQL Guru

    Yes it can be done. You can pretty much load anything you like into mysql as long it is in the correct format. Navicat is better than PHPMyadmin for getting Excel data into the mysql database since it imports several formats without needing to use code.

    More complicated methods are to use Load Data Infile commands folowed by the file type etc. It has been a long tme since I had to do this so I cannot remember the exact query strings.

    A simple but clever method of getting excel data into mysql using phpmyadmin is to save the excel data as a Comma or Tab delimited text file and then import this text file into the database from the front page of PHPMyAdmin where it says "import".

    It is important to understand how the different tables in the zencart database are structured and mimic them in the excel spreadsheet. You also need to know how they relate to one another. Anything less and you end up with a very messy database.

  4. #4
    Join Date
    Jul 2005
    Location
    Beaverton, Oregon
    Posts
    18
    Plugin Contributions
    0

    Default Re: Question for a MYSQL Guru

    Wow, Im glad momma taught me to keep my mouth shut unless I know the answer for sure, lol.. I think ill create another zen cart and try these methods.. it makes sence.. Kind of, but I love to play with new things and new ideas lol
    thank you bunnyip and jollyjim you may have just created a big mess for someone, lmao

    Rick

 

 

Similar Threads

  1. v151 Question for guru to answer please
    By strelitzia in forum General Questions
    Replies: 6
    Last Post: 24 Jun 2013, 10:50 PM
  2. Question for Zen Cart Guru's
    By dcd2008 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Jun 2008, 01:46 PM
  3. find/replace (sub)strings in zen's mysql-DB (mysql syntax question)
    By mypashop in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 19 Oct 2007, 02:21 PM
  4. A Question fo MySQL guru's
    By budfox in forum General Questions
    Replies: 0
    Last Post: 16 Feb 2007, 01:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR