Importing data from Excel into PHP 
November 9th, 2005, 08:25 PM
| | | Importing data from Excel into PHP
Is it possible to import data from excel file into php and than put it in
mysql database? | 
November 9th, 2005, 08:45 PM
| | | Re: Importing data from Excel into PHP
my brother imports excel sheets straight into mysql - would that be of
use to you ? | 
November 9th, 2005, 09:15 PM
| | | Re: Importing data from Excel into PHP
I ment only data from excel sheets, from fields A1,A2,B1,B2 etc. then I
could sort this data out and put them nicely into mysgl database
[color=blue]
> my brother imports excel sheets straight into mysql - would that be of
> use to you ?
>[/color] | 
November 9th, 2005, 09:35 PM
| | | Re: Importing data from Excel into PHP
Michal Maciejczak wrote:[color=blue]
> I ment only data from excel sheets, from fields A1,A2,B1,B2 etc. then I
> could sort this data out and put them nicely into mysgl database[/color]
sounds like a job for the COM functions: http://us3.php.net/manual/en/ref.com.php
--
Justin Koivisto, ZCE - justin@koivi.com http://koivi.com | 
November 10th, 2005, 02:25 AM
| | | Re: Importing data from Excel into PHP
Save the data you want imported as CSV... then use mysqlimport from the
command line or in your PHP code!!
Another problem solved by GOD...
Frank
Michal Maciejczak wrote:[color=blue]
> Is it possible to import data from excel file into php and than put it in
> mysql database?
>
>[/color] | 
November 10th, 2005, 07:15 AM
| | | Re: Importing data from Excel into PHP
Frank [GOD] wrote:[color=blue]
> Save the data you want imported as CSV... then use mysqlimport from the
> command line or in your PHP code!!
> Another problem solved by GOD...
>
> Frank
>[/color]
I'm using this in my website with no problem. I think it's the best (or
only?) solution cause you can also manipulate the data....
e.g $fp is the csv file
$tmp=fgets($fp);
while(!feof($fp)) {
$tmp=fgets($fp);
$t=explode(";",$tmp);
$val=str_replace("\"","",$t);
$val=str_replace("\\","",$val);
insert into.... | 
November 11th, 2005, 07:55 AM
| | | Re: Importing data from Excel into PHP
Thank you very much,
That's exacly what I've been looking for | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 220,989 network members.
|