I have a SQL database set up with 11 columns: ID, FIRST, LAST, and then ONE through EIGHT. I have it setup to submit data and that works fine but Im having trouble creating the php code to display search results.
Here is the form I am using to create a search.
[php]
Period
1
2
3
4
5
6
7
8
Teacher’s Last Name
submit
[/php]
When I use PhpMyAdmin I can query the database with this[php]SELECT first
, last
FROM data
WHERE six
LIKE ‘mele’[/php] getting the correct results.
Except I want it to be WHERE (period from form)
LIKE '(teacher from form)`
I haven’t been able to get a correct search results from any php code I have tried using.
HELP ME!!!
THANK YOU