Need favor regarding this matter. I'm trying to display checkbox by retrieving it from db query. Currently I'm able to display all the data into checkbox from db query. My problem is how can i select only specific data (not all) from db query to display on checkbox.
Below are my code to display all data into checkbox.
<!--- to get data  --->
<cfquery name="getData" datasource="#menu#">
  select namefood,price
  from menu_detail
  where foodname = <cfqueryparam cfsqltype="cf_sql_varchar" 
  value="#foodname#">   
  order by creation asc
</cfquery>
<!--- end --->
  <!--- To display checkbox --->
  <cfif #getdata.recordcount# neq 0>
         <div id="Layer1" style="position:absolute; left:477px; top:7px; width:95px; height:24px; z-index:1">Menu list:</div> 
         <div id="Layer1" style="position:absolute; left:479px; top:22px; width:220px; height:122px; z-index:1">
           <cfloop query="getData">
                   <input type="checkbox" class="cssNormal" name="cbox" >  #namefood#<br>
            </cfloop>
         </div>  
    </cfif>