[eluser]ranjitbd[/eluser]
i can retrieve data from database when any event triggers like click on button or a link.
but in my index page a search criteria box is there where 4 combo box is exist for user search option.
i have to fetch data from database when the page is loaded. earlier i have done this with flat php.
the code is showing below:
//city selection box
Code:
<select name="city" id="city">
<option value="0">select city</option>
<?php
$sql= "select * from city_info" ;
$result = mysql_query($sql, $db);
while($row = mysql_fetch_array($result))
{?>
<option value="<?php echo $row['CITY_CODE'];?>"><?php echo $row['CITY_NAME'];?></option>
<?php } ?>
</select>
but now what to do with CI