is there a way to store an array in phpMyAdmin.
I know there are probably a few but I was wondering which would be the best with CodeIgniter.
My issue is I want to add the data via CodeIgniter Model and I can’t find any reference about arrays.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
first of all phpmyadmin isnt where the data is stored, phpmyadmin is an interface for mySQL databases.
http://www.phpmyadmin.net/home_page/index.php
That being said, mySQL databases cannot store ‘an array’, only datatypes such as ints, strings, datetimes etc
A possible solution is to covert your array of strings into one long string (php -implode) and store it as a single string in your database.
Then when you pull it out of the database, separate it back into an array of strings (php str_split)