Welcome Guest, Not a member yet? Register   Sign In
Using form_dropdown with IDs and names
#6

[eluser]CroNiX[/eluser]
The problem in the original post is this line:
Code:
<?php foreach($q_team_dropdown->result() as $row ){

using result(), it returns an object which you can't access like an array like the error says. Change it to $q_team_dropdown->result_array() and your code should work since the result set will be an array.


Messages In This Thread
Using form_dropdown with IDs and names - by El Forum - 04-10-2014, 11:39 AM
Using form_dropdown with IDs and names - by El Forum - 04-10-2014, 12:23 PM
Using form_dropdown with IDs and names - by El Forum - 04-10-2014, 12:41 PM
Using form_dropdown with IDs and names - by El Forum - 04-10-2014, 02:55 PM
Using form_dropdown with IDs and names - by El Forum - 04-10-2014, 03:08 PM
Using form_dropdown with IDs and names - by El Forum - 04-10-2014, 04:58 PM
Using form_dropdown with IDs and names - by El Forum - 04-13-2014, 11:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB