Jump to content

Archived

This topic is now archived and is closed to further replies.

dpwhite

reading/writing php array to mysql

Recommended Posts

I have a table in php which I want to write out to a mysql table.
then I want to read it back into the array.
I want to either loop thruough the array and write it, or write the
entire array.

How do I do it.

Thanks

Share this post


Link to post
Share on other sites
use a foreach loop to iterate through the array and use a mysql insert statement to write each record.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.