Welcome Guest, Not a member yet? Register   Sign In
Dynamically fill an array from Mysql using Form Helper for dropdown list.
#5

[eluser]DCZ[/eluser]
[quote author="Erwin Setiawan" date="1227540155"]Hey why your code not working for me?
i had the same problem to..
and try to get solution, but while I try your solution, I can't get all dropdown value displayed.
[/quote]

That is because this line

Code:
$tmp2 = array_merge($tmp,$tmp);

Should be

Code:
$tmp2 = array_merge($tmp,$tmp2);

And this
Code:
foreach($suppliers as $row)

Should maybe be this
Code:
foreach($suppliers->result() as $row)

Greetz


Messages In This Thread
Dynamically fill an array from Mysql using Form Helper for dropdown list. - by El Forum - 05-05-2009, 08:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB