Thursday, September 12, 2013

PHP Mysqli all objects from 1 column into array

PHP Mysqli all objects from 1 column into array

I have a mysql database table with two columns. I'd like to get all the
items from one column into one array, and all the items from another into
the other array. It's important that the arrays keep the same order,
because the items need to match each other. I know that I am probably
missing this somewhere in the php documentation, but I always get confused
by the documentation and so I haven't been able to work this one out.
Thanks!

No comments:

Post a Comment