473,379 Members | 1,191 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Import MySQL table data into PHP

I am in learning stage,Now I created table in mysql thur php coding and I want to Import the data thru php coding
Oct 5 '07 #1
5 1522
Atli
5,058 Expert 4TB
Hi dsudhakara. Welcome to The Scripts!

What kind of data are you trying to import?
Have you tried this yourself?
Can we see your code?
Oct 5 '07 #2
Motoma
3,237 Expert 2GB
I am in learning stage,Now I created table in mysql thur php coding and I want to Import the data thru php coding
In that case, you will need to read your data, and perform an INSERT for each row of data you read.

If this is not helpful, please use more verbosity in describing what you are having problems with.
Oct 5 '07 #3
pbmods
5,821 Expert 4TB
Heya, dsudhakara.

Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).
Oct 5 '07 #4
Hi dsudhakara. Welcome to The Scripts!

What kind of data are you trying to import?
Have you tried this yourself?
Can we see your code?
In Excel data trying to import.

Example,

Phone number :__MUNGED__
First name : Raj
Last name : Anu
address1 :chn
address2 :blr
state :TN
city :Chn
zip : 23232
id :1

I have created this fields thru php .Now I created one button click that button
that excel file data insert to recently created that table.
Oct 6 '07 #5
Motoma
3,237 Expert 2GB
In Excel data trying to import.

Example,

Phone number :__MUNGED__
First name : Raj
Last name : Anu
address1 :chn
address2 :blr
state :TN
city :Chn
zip : 23232
id :1

I have created this fields thru php .Now I created one button click that button
that excel file data insert to recently created that table.
I am sorry, but you have not pointed out what part of the process you are getting caught up on.

Your system will need to do a number of things:

* Upload the data file.
* Parse the data set
* Establish a connection to the database
* Perform SQL INSERT statements

What are you having trouble with?
Oct 9 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Bruce A. Julseth | last post by:
Newbie Question: Is there a way to import MS Access into MySQL? Maybe create a CSV or something. If so, what would be the SQL to do this? Thanks... Bruce
2
by: Damien | last post by:
Hi to all, I need to design an import/export system. Data comes from a filemaker pro DB in a big CSV file. Some alterations are made on the data as it is imported into my mysql table. Data is...
0
by: Vidhya CS | last post by:
Hi , I am trying to export a database from one machine ie linux, and import the same database to another machine ie ,solaris . I exported the database using the following command . mysqldump...
0
by: adrian GREEMAN | last post by:
When I try to import a text file with new data for an existing table I get the error "1148 - the used command is not allowed with this MySQL version." I have tried with both PHPMyAdmin2.3 and...
8
by: Johnny | last post by:
I was looking for information on how to import an excel file or other text file into a MySql database. I have done this with both access and SQL Server and am looking for a way to do this in...
2
by: jet | last post by:
Hi, Maybe this is an easy task, but I'm having a really hard time figuring out how to do this. I'm a complete newbie to SQL Server. I have a database dump file from MySQL that's in .sql...
4
by: news | last post by:
Our production database in an exported textfil runs about 60 MB. Compressed that's about 9 MB. I'm trying to import the export into another machine running FC3 and mySQL 11.18, and it appears as...
3
by: Joost | last post by:
Hello, I am using the LOAD DATA INFILE command to import a text file into mysql. However, there is much more text in the file than needed in my tables. How can I make a selection from the...
0
by: NewbieSupreme | last post by:
I'm using PHPMyAdmin on an Apache2Triad install (latest version; 5.x.x, which installs PHP5 and PHPMyAdmin 2.8 as well). In Access, I exported a table to a text file, tab-delimited, text qualifyer...
7
by: Randy | last post by:
Folks: We have a web-based app that's _really_ slowing down because multiple clients are writing their own private data into a single, central database. I guess the previous programmer did...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.