• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a form dropdown from db

#2
[eluser]jbreitweiser[/eluser]
You have to assign the return from sitedropdown() to a variable and then send it to the view.

function sitedropdown()
{
$this->load->model('outage_model');
$formVar['somedata'] = $this->outage_model->sitedropdown();
$this->load->view('<name of view file>', $formVar);
}
}


Messages In This Thread
Creating a form dropdown from db - by El Forum - 02-16-2010, 11:48 AM
Creating a form dropdown from db - by El Forum - 02-16-2010, 12:07 PM
Creating a form dropdown from db - by El Forum - 02-16-2010, 12:07 PM
Creating a form dropdown from db - by El Forum - 02-16-2010, 03:00 PM
Creating a form dropdown from db - by El Forum - 02-16-2010, 03:13 PM
Creating a form dropdown from db - by El Forum - 02-16-2010, 03:40 PM
Creating a form dropdown from db - by El Forum - 02-16-2010, 05:51 PM
Creating a form dropdown from db - by El Forum - 02-17-2010, 08:19 AM
Creating a form dropdown from db - by El Forum - 02-17-2010, 10:23 AM
Creating a form dropdown from db - by El Forum - 02-17-2010, 10:25 AM
Creating a form dropdown from db - by El Forum - 02-17-2010, 10:28 AM
Creating a form dropdown from db - by El Forum - 02-17-2010, 10:33 AM
Creating a form dropdown from db - by El Forum - 02-17-2010, 10:35 AM
Creating a form dropdown from db - by El Forum - 02-17-2010, 10:38 AM
Creating a form dropdown from db - by El Forum - 02-17-2010, 12:06 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.