:confused; I am trying to find the correct query string to give the following
result....The input form has 6 serach criteria, if a user inputs only three of
the six, the result should be only the records matching those inputs. My
current statement does not do this.
I am using a MySQL database with one table. The code needs to be able to work
with any amount of the criteria specified by the input. I am having a difficult
time figuring this out. Please help!!!!!!!!


SELECT *
FROM docimg.tickets
WHERE (ticketdate = 'MMTicketDate') OR ( ticketnum = 'MMTicketNum') OR
(customername = 'MMCustomerName') OR (customernum = 'MMCustomerNum') OR
(jobnum = 'MMJobNum') OR (trucknum = 'MMTruckNum')
ORDER BY ticketnum ASC