Hi All,
Developing a Real Estate website and have everything setup except this one part:
Having a problem with an entry_id list that I’m trying to save to a PHP Session and advanced conditionals.
Here is the code i’m using to try save a php variable.
$searchids = '{exp:channel:entries channel="properties" dynamic="no" ' . $searchquery . ' search:property_sold="NO"}{if property_price > ' . $price_min . ' AND property_price < ' . $price_max . '}{entry_id}|{/if}{/exp:channel:entries}';$price_min & $price_max are getting the GET value from the URL
If I perform the same code without the {if} statements, it will save the list fine, but because EE parses the ADVANCED CONDITIONALS last, it doesn’t work.
I’m using this variable to then save to a session and using ‘entry_id’ list on the individual property pages to create NEXT & PREVIOUS properties links based on the search done on the previous page.
Any ideas to get around this?
Thanks for your help in advanced.