Simple checkbox on Results page issue
I am using an INSERT page to successfully add a Y or N value to my database "Approved" column using a checkbox.
I have the checkbox working correctly on the UPDATE and DELETE pages. And it shows fine in the results table correctly.
My issue is between the SEARCH and RESULTS where the filter is concerned. My results table is showing all records ignoring the "Approved" column.
I have the Search checkbox checked by default so that is always show all approved results.
This is from saerch.php:
<input name="Approved" type="checkbox" id="Approved" value="Y" checked="checked" />
This is the business end of the search URL:
Results.php?S_Line_Name=&S_Line_Nickname=&S_Start_Decade=&S_End_Decade=&S_Manufacturer=&S_Size=&S_Cat_1=&Approved=Y&S_Added_By=&S_Line_Text=&Search.x=30&Search.y=20&Search=Search
This is the comparison list additions how I would think it would work:
$WADbSearch1->addComparisonFromCheck("Approved","S_Approved","Y","","AND","=","=",1);
Used column type: boolean; Type: Check; check field name: S_Approved; Checked value: = Y
Tried many different combinations and none worked. Did some forum searches and found someone having simular issues and they were told to use: Type Edit and make sure Search value is Y. That didn't help me.
I know I am missing something simple but I am over looking it obviously.
I want to be able to have my search only return those records that have a Y in the Approve column.
Thanks in advance for your help.