Skip to content

Instantly share code, notes, and snippets.

@jjeffers
Created November 16, 2015 15:17
Show Gist options
  • Save jjeffers/0c54fab8dab049f12d59 to your computer and use it in GitHub Desktop.
Save jjeffers/0c54fab8dab049f12d59 to your computer and use it in GitHub Desktop.
foreach ($query->result() as $row)
{
//$gri = $row->id;
//$willthisfixit=0;
//if($gri==292){
//echo '<option value="'.$row->id.'" selected="selected">'.$row->name.'</option>';
//}else{
//if($willthisfixit==0){
//echo '<option value="">'.lang_key('select_one').'</option>';
//}
echo '<option value="'.$row->id.'">'.$row->name.'</option>';
//}
//$willthisfixit++;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment