Hi all im looking for a bit of help with a SQL statment in trying to use values from 3 drop down lists
1: the teachers name
2: the subject and
3: the scool,
to run a sql query to find out the teachers user name from another table on the register button of the student register page within my website
"SELECT * FROM teacherregister WHERE username=" & subjectvalue & "" & teachervalue & "" & schoolvalue & ";"
This is what i have but it dont seem to work all the values are correctly took from the dropdown lists but wont work in this statment