Welcome Guest, Not a member yet? Register   Sign In
form validation set_select
#1

[eluser]bhbutter123[/eluser]
I cannot figure this out. I understand how to use the set_select(i think) and it will not work. can someone help me? I am pulling results from an item in a db and compare it to all of the items and if the value of the item matches one of the values of the overall data then it will be selected. Here is the code I am using.

Code:
if($info->album == $row->album){
  echo"<option value=\"$row->album\""; echo set_select('album', $row->album, true);echo">$row->album</option>";
}
else{
  echo"<option value=\"$row->album\""; echo set_select('album', $row->album);echo">$row->album</option>";
}
#2

[eluser]khagendra[/eluser]
will you please put all the codes. The code u have put is not sufficient to find out what u actually want to do.
#3

[eluser]bhbutter123[/eluser]
I figured it out on my own. Thank you to all who looked at it though, I really enjoy the sense of community with codeigniter.




Theme © iAndrew 2016 - Forum software by © MyBB