Hide/remove a name from a menu/list
Is there a way to hide or remove a student's name from a menu list once that student is inserted into a database table? The table that list the student's name is different from the table that record's the student's grade. The table that record's the grade has the column pointing to the primary key of the student table. It's called "gra_stuid" as one of the columns.
Here's my code below:
<cfquery name="graadreport" datasource="master">
SELECT graadreport.*, trim(CONCAT(name.fname,' ',name.xholy))AS student, trim(concat(ltfname,' ',ltlname)) as LT, verbs.* FROM name, graADREPORT, graadlt, verbs
WHERE graLT = '#Session.user_id#'
AND name.foiid = grafoiid
AND verbs.verid = gracontact
AND graweekbegin = '#form.graweekbegin#'
AND graweekend ='#form.graweekend#'
GROUP BY grafoiid
ORDER BY student
</cfquery>
<span class="label_student">student</span>
<cfselect name="grafoiid" class="box_student">
<option></option>
<cfoutput query="student">
<option value="#student.foiid#">#student.student#</option>
</cfoutput>
</cfselect>
