For weeks on end I have worked on MYSQL and PHP. I have built a music database with approx 15 data columns. MANUALLY - I am able to QUERY database with great results:
SELECT * FROM $tableName WHERE category RLIKE ('option-choice') and
genre RLIKE ('option-choice') and Sub_genre RLIKE ('option-choice')
and lyrical_theme RLIKE ('option-choice') and lead RLIKE
('option-choice') and tempo RLIKE ('option-choice'); "
My available HTML FORM has NINE drop down buttons which I want to perform as well, each containing several choices. No radio buttons, check boxes or multiple choices. Each button name is like this:
<select id="category" name="category"><option value="" class="header">Category</option>
Through my HTML Form and _POST, I am able to get any 1 field choice result, output is correctly table formatted with correct colors, etc. GREAT!
When I add a 2nd or a 3rd or 4th form choices, I still get ALL the records but NOT Filtered results as I get above (manually). Visitor choices are NOT 1,2,3, in order, but could be any combination thereof like 2,5,7 or 6,7 or 9 etc....
I need the correct PHP handling statement to produce the correct SELECT statement, (POST ARRAY / IGNORE BLANK CHOICE OPTIONS) to see my efforts become reality. ANY help is truly appreciated. After weeks, I am exhausted from reading on my own and not produce correct results - Hundreds of trial and errors, but at least I have given it my best efforts.. I need help.... ! THANK YOU!!!!
$category='' OR$categoryIS NULL LIMIT $start, $limit"; $result = mysql_query($query1); What I really need is the correct handling of the form query - Thanks !!!!! - ALSO, I am using MAC SEQUEL PRO to play around with my SELECT STATEMENTs - Thank you !