CMS Populate Using Advanced Filter

3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 30, 2013   (RSS)

By nmsinc - November 23, 2013

I have and advanced filter I'm using for a dropdown. All filters work great with the exception of the last one listed here : ".$table1Record['offers_third_party_claims']." ='1'

I have listed the entire statement below - any help would be appreciated - thanks NMSINC

<?php $table1Record = mysql_get('member_companies', $CURRENT_USER['member_company_accounts']); ?>

SELECT num, fullname FROM `<?php echo $TABLE_PREFIX ?>accounts`

WHERE `member_company_accounts` = '<?php echo $ESCAPED_FILTER_VALUE ?>' AND user_type IN('Adjuster', 'Dispatcher/Adjuster') AND disabled = 'No' OR user_type IN('Adjuster', 'Dispatcher/Adjuster') AND adjusts_third_party_claims = '1' AND disabled = 'No' AND ".$table1Record['offers_third_party_claims']." ='1'     

nmsinc

By nmsinc - November 30, 2013

Hi Dave,

I was able to correct the issue by separating the requests by account user preference using a if/else statement - Thanks for the help!

nmsinc

nmsinc