selected value

Hi 

my question is can we store the values in local variables- yes we can, but can we select those values which are stored in local variable and get data from db? 

so these values want to store in local variable 

this is selectable row can get the data by selecting the row with that row data which is stored in local variable?

  Discussion posts and replies are publicly visible