Looping through row columns values in a row? |
[eluser]Stephen G[/eluser]
Hi ![]() I am new to code ignitor, and PHP :bug: :wow: I am returning a set of results and loop through the results to print out a name value pair... But i can not figure out what the best way to approach this? :red: Here is my code... I want to do something like this??... Code: $this->db->where('id_fields', $row->id_forms_fields); This is what my table looks like Code: ____________________________________________________________________________________ Is there a way to loop through each item in a row and print out the column name and value in either codeignitor or PHP? Sincerely, Steve :cheese:
[eluser]Mareshal[/eluser]
[quote author="Stephen G" date="1268747447"]Hi ![]() I am new to code ignitor, and PHP[/quote] Off topic: I don't think you are working with CodeIGNITOR, is CodeIgniter in my knowledge. On topic: If you are new to PHP, don't work with CodeIgniter from start. Better try to make easy tasks using simple PHP, see how they work, then move to CI. I had 2 years PHP experience when I started CI. To loop between columns, try this: http://ellislab.com/codeigniter/user-gui...forge.html |
Welcome Guest, Not a member yet? Register Sign In |