Welcome Guest, Not a member yet? Register   Sign In
usint form_dropdown()
#4

If it did not work then your not getting the data from the database as an object.

Another way of doing it is to type cast the type:

PHP Code:
$newTypes = (array)$types

These will only work if you pass it an object array.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
usint form_dropdown() - by Martin_Salas - 09-02-2020, 10:24 PM
RE: usint form_dropdown() - by InsiteFX - 09-03-2020, 04:02 AM
RE: usint form_dropdown() - by Martin_Salas - 09-03-2020, 06:37 PM
RE: usint form_dropdown() - by InsiteFX - 09-04-2020, 12:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB