Insert an array into db mysql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Scarlett007
    New Member
    • Mar 2010
    • 1

    #1

    Insert an array into db mysql

    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_na me"] in a field `product_name`; $rows["product_sk u"] 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?
    Thanks.
  • philipwayne
    New Member
    • Mar 2010
    • 50

    #2
    Just use serialization for storing arrays and objects in text format.

    Comment

    Working...