Creating a form dropdown from db |
[eluser]laytone[/eluser]
What Template parser are you using? How / where do you send data to your views? that drop down options array needs to be include in your load->view like this: Code: $pagedata['dropdownoptions'] = $this->your_model->your_get_list_function(); After this is done there is a variable called $dropdownoptions and a variable called $examplevar in your view.
[eluser]Bionicjoe[/eluser]
Got all my template stuff from Simple Template Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
[eluser]laytone[/eluser]
Everything looks good then.. make sure there is a $ in front of dropdownoptions Quote:Added code. Same issue.
[eluser]laytone[/eluser]
Ok, here we go, I think I got it: Code: function addticket() I bet that works
|
Welcome Guest, Not a member yet? Register Sign In |