array into mysql

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
ilavos
Forum Newbie
Posts: 10
Joined: Tue Apr 18, 2006 4:01 pm

array into mysql

Post by ilavos »

This a probabbly been posted already,but i've spent a long time on google and on the forum search engine and havent found anything,so this is my last resort.Here's my problem:I have gathered various data that i've put into an array.But now i'm stuck,because i dont know how to store that in mysql.Can anyone point me to where I might find a solution?Thanks ahead.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

You can format your array into a csv file and use phpMyAdmin or any database tool to upload into some table in mysql which matches with csv fields.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

What's your problem exactly?

- Don't know how to serialize a php variable into a string?
- Don't know how to map php array to a sql table?
- Don't know SQL?
- ...
Post Reply