[eluser]JohnnyBravo[/eluser]
Hi!
I'm newby here and in the world of CI too. I started to develop a little application, and I'm facing a problem.
So, I want to edit data in my database table. I get the original data from the table:
Here's my view file:
Code:
...
<div class="row">
<label for="name" class="required">Csoportnév:</label>
<input type="text" name="name" id="name" value="<?php echo set_value('name');?>" class="text" />
</div>
<div class="row">
<label for="crm">CRM!:</label>
<input type="radio" name="crm" id="crm" value="a" class="checkbox" <?php echo set_radio('crm', 'a'); ?> /> Szerkesztés
<input type="radio" name="crm" id="crm" value="v" class="checkbox" <?php echo set_radio('crm', 'v', TRUE); ?> /> Megtekintés
<input type="radio" name="crm" id="crm" value="n" class="checkbox" <?php echo set_radio('crm', 'n'); ?> /> Nincs hozzáférés
</div>
<div class="row">
<label for="register">Regiszter!:</label>
<input type="radio" name="register" id="register" value="a" class="checkbox" <?php echo set_radio('register', 'a'); ?> /> Szerkesztés
<input type="radio" name="register" id="register" value="v" class="checkbox" <?php echo set_radio('register', 'v', TRUE); ?> /> Megtekintés
<input type="radio" name="register" id="invoices" value="n" class="checkbox" <?php echo set_radio('register', 'n'); ?> /> Nincs hozzáférés
</div>
...
I can get the original data from the database, but how can I show them in this form from the database.
I hope, you understand it.

I've tried the search function, but didn't find the answer (Maybe, I've choose wrong keywords...).
Thanks a lot!