CodeIgniter Forums
date helper: timezone_menu() function - 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: date helper: timezone_menu() function (/showthread.php?tid=8090)



date helper: timezone_menu() function - El Forum - 05-05-2008

[eluser]adamBouchard[/eluser]
Hi,

I want to use the timezone_menu() function and store and retrieve the user results from a database. I do this with the form_dropdown() function like so

form_dropdown($name, $options, $selected_value);

does anyone know how(or if possible) to pass in those parameters with timezone_menu() ?

Thanks, Adam


date helper: timezone_menu() function - El Forum - 05-06-2008

[eluser]adamBouchard[/eluser]
the simple solution for me was to just change my variable name in my database to "timezones", and use this function like so

timezone_menu($selected_value);

http://ellislab.com/codeigniter/user-guide/helpers/date_helper.html

thanks