rahulephp Posted December 8, 2009 Share Posted December 8, 2009 Hi there, can you please help me? i have data in array and i want to insert it in a single table. structure of table and array to be store is shown below: Please let me know how to store this array in database? Database Structure: array-structure database-Browse Let me know any solution for this? Thanks in anticipation Link to comment https://forums.phpfreaks.com/topic/184377-how-to-store-multidimensional-array-in-database/ Share on other sites More sharing options...
glenelkins Posted December 8, 2009 Share Posted December 8, 2009 hi change all fields to allow text characters and serailize the array: $array = array ( 'temp_property_name' => array ( 0=>'x', 1=>'y' ) ); $temp_property_name = serialize ( $array['temp_property_name'] ); Link to comment https://forums.phpfreaks.com/topic/184377-how-to-store-multidimensional-array-in-database/#findComment-973348 Share on other sites More sharing options...
rahulephp Posted December 8, 2009 Author Share Posted December 8, 2009 Hey thanks for your quick reply. Will do that and get back to you soon. Link to comment https://forums.phpfreaks.com/topic/184377-how-to-store-multidimensional-array-in-database/#findComment-973352 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.