Your daily news about web technology, interface and design.

Sorry about the current website getting messy,
we are currently moving to our new wordpress platform "webmasterbulletin.net".
> webXadmin Opensource Projects and Commercial Applications > Php, Excel & Mysql Tools
 
Convert your excel sheets to mysql data with xls2mysql (php)

xls 2 mysql windows converter for excel files converts Excel Files to clean mysql queries - available at webmasterbulletin.net

XLS2MYSQL is now available for windows : click here for more information


1. WHAT Does it do ?

  • uses first line of the excel file to create sql columnss
  • uses filename to create table
  • uses each following row (from 2 to N) to create inserts.
  • does not actually perform the sql : please copy and paste to your favorite sql admin interface.

2. WHAT DOESN'T IT DO (YET)

  • detect field types (numeric, text, longtext, unique)

3. Xls2Mysql requirements : you'll need php > 4.0.6

4. HOW TO USE xls2mysql :

  • After payment has been confirmed (ses below), you'll get unlimited access to the xsl2mysql download adress.
  • get the package 'xls2mysql.zip' and unzip it to a web folder that has PHP
  • run the xls2mysql.php page within your browser
  • Upload the files or test from the sample xls files from the file list tab
  • if you upload files, check that php has read/write rights on the xls folder.

XLS2MYSQL is now available for windows : click here for more information

windows Excel to MySql converter


Comments are temporarily disabled because of SPAM
 Discussion / comments
2006-03-17
Joyce comments from New Mexcio :
I need to convert excel files to mysql (in fact, i need to insert into informax database). Each file has three sheets. Can your software convert them at one process?
 Post a reply to this comment

 Read this discussion thread
(2 messages)
2006-01-22
dude comments from here :
I have a 15 meg file and unfortunately this program poops out after 30 secs. Is there something I can get that will handle the conversion of such a large file?
 Post a reply to this comment

 Read this discussion thread
(2 messages)
2006-01-20
Napalm comments from Paris, France :
Wow, exactly the tool i was seeking, works perfectly and very simple to use even for a total php/mysql noob like me.
Merci les gars !
 Post a reply to this comment
2005-12-29
Them comments from Amsterdam :
Found that MySql does not mind spaces in Field names, heads look even beter, so just loosing the hyphen would work.
Thanks Erwan
 Post a reply to this comment

 Read this discussion thread
(5 messages)
2005-12-29
Them comments from Amsterdam :
HI Great job
it Almost works! there are 2 little things to change and the sql is rendered OK

do not have skill enough to change myself ,

1. all spaces in excel COLUMN HEADER names are changed to an hyphen - in the mysql FIELD names The sql does not like that

better change the spaces into underscores as in Field_Names
thus create table tblname ( field_name varchar(255));

2. last character is choped off from every cellvalue
all header cells and all cells from row1 to eof mis the last character
(i mean data vallue stream read out got chopped off 1 )

hope this was helpfull
this is a great script
please keep me posted
Thank You
Them Cuiper




 Post a reply to this comment
2005-12-13
Ersin comments from Turkey :
nice work but i have charset problems :)
 Post a reply to this comment
2005-12-12
Bustergut comments from London :
After I worked out that you have to USE a database first it worked OK. Had trouble with large files though well below 2MB. Kept getting a time out after 30s from a file within xls2mysql. (.inc) Good stuff though and await next release.
 Post a reply to this comment
2005-12-05
amnhak comments from iran :
is cery very good
 Post a reply to this comment


Most read :
  • php move file (50971 readers).
  • Excel : export to a text file with a chosen delimiter (49177 readers).
  • Replace string in file with sed (34910 readers).
  • Oracle autoincrement columns (26684 readers).
  • mysql replace string in a query (22743 readers).
  • String replace (21877 readers).
  • Shell : rename all files in subdirectories to lower-case (21517 readers).
  • Flash Page turn effect : goto PAGEFLIP (20144 readers).
  • Read Excel Spreadsheet with PHP (19902 readers).
  • Tip : get yesterday's date (19259 readers).

  • download webxadmin
      Support webxadmin !
    donate
    Donators get sitescope OS
      > About webxadmin
    > Site map
    > Contact the author :
    webxadmin at free dot fr

    Pôle Ouest - web design services and opensource consultancy - Quimper Brest Lorient Douarnenez Carhaix
    Google

    Pôle Ouest - web design services and opensource consultancy - Quimper Brest Lorient Douarnenez Carhaix

    Excel2Mysql converts Excel sheets to Mysql insert queries

    Flash Photos Viewer : Eyelash

     Use OpenOffice.org



    Free Software and Game Downloads