By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,029 Members | 1,294 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,029 IT Pros & Developers. It's quick & easy.

Insert an array into db mysql

P: 1
Dear all!
I've looked through your forum but i couldn't find what i exactly need.
I have an array (actually it's fields from CSV -file). I insert them into temporary table and then insert data from different fields from this table into different existing tables. For example I need insert array of $rows["product_name"] in a field `product_name`; $rows["product_sku"] in product_sku etc. But in permanent table i have ahother fields which have to be NULL or 1 for each row. What should i do?
Mar 24 '10 #1
Share this Question
Share on Google+
1 Reply

P: 50
Just use serialization for storing arrays and objects in text format.
Mar 25 '10 #2

Post your reply

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