CodeIgniter Forums
Convert db query column to string array - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Convert db query column to string array (/showthread.php?tid=5261)



Convert db query column to string array - El Forum - 01-14-2008

[eluser]Unknown[/eluser]
One of my queries returns a single column of type string. I want it to use it with ci's form_dropdown() to supply as $options. Is there an easy way to just treat this array as an array of string?