There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot computer connection crash css dell display driver drivers email error excel explorer firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition printer problem router slow software sound startup trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
importing file in phpmyadmin


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
sudhakararaog's Avatar
Computer Specs
Member with 64 posts.
 
Join Date: Sep 2007
Experience: Intermediate
21-Jan-2008, 11:17 PM #1
importing file in phpmyadmin
hi

i need to import data into a table in mysql from phpmyadmin using the
Import option instead of using insert statements.

for example if the table has 10 fields should the file that needs to
be uploaded have the same field names on top and the associated values.

ideally should this be as an excel or csv file or text file.

in each case please advice the format in which the data needs to be
added into the csv/txt file.

please advice.

thanks.
sudhakararaog's Avatar
Computer Specs
Member with 64 posts.
 
Join Date: Sep 2007
Experience: Intermediate
22-Jan-2008, 04:44 AM #2
importing file in phpmyadmin
presently i have a table in which there are records and the fields are slno (this is a primary key auto increment), firstname, lastname, email, date(which inserts as a date format) these records are presenty being inserting from a html form. this works fine.

i have additional data that is on paper and this paper data needs to be added to this table and the are numerous records that have to be inserted so executing an sql query from myphpadmin is not a good option. due to this i would lke to add the paper data first into a text file or csv file and then use the Import feature in phpyadmin so that this new data is added to the existing table along with the data that is already inserted through the form.

please advice
1. if a text file or csv file is preferrable.
2. in what format should the data be entered in the case of
a) text file & ) csv file

should i mention slno, firstname, lastname, email, date
on top of the file and add data accordingly.

also as slno is auto increment do i need to specify the numeric number or is it optional and in case of date do i need to follow the same format as it is for previous records while entering the data manually into the text or csv file.

thanks.
Anthony:-P's Avatar
Computer Specs
Senior Member with 449 posts.
 
Join Date: Nov 2006
Location: UK
Experience: Between Intermediate and
25-Jan-2008, 08:24 AM #3
Hi,

I've never really imported from a file i've made, only ever what phpMyAdmin has outputted for me.

You could just insert a row in the table manually? then export it in the format you want to import it as...that way you'll know how to format it :-)

Regards,
Anthon
__________________
Currently training at geekstogo!
If your thread is solved, please mark as solved from the 'Thread Tools' menu.
My computer beat me at chess, however it was no match for me at kick boxing!
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:35 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.