[eluser]shinokada[/eluser]
The following is from the BackendPro.
Code:
print $this->lang->line('general_yes');
print form_radio('active','1',$this->validation->set_radio('active','1'),'id="active"');
print $this->lang->line('general_no');
print form_radio('active','0',$this->validation->set_radio('active','0'));
This is for an previous version of CI.
I want to repopulate a value of radio button.
DB has the following structure for the field 'active'.
Code:
CREATE TABLE IF NOT EXISTS `omc_projects` (
...
`active` tinyint(1) unsigned NOT NULL DEFAULT '0',
...
INSERT INTO `omc_projects` (`id`, `customer_id`, `project_name`, `total_hr`, `created_by`, `active`, `note`) VALUES
(6, 6, 'News letter', 3, '0', 1, 'Newsletter design'),
...
...
How do I do that?
Thanks in advance.