screaming_banjo
06-15-2005, 11:50 AM
Hi,
I have a message which I only want to show if there is a search result present, I don't want it to show if a particular UserID is logged in or the search hasn't returned any results.
If there are no search results then an error message is output. I'm stumped witht the logic for this, here's the code that I've got:
<% IF rsusernow("UserID") <> "227" OR errormessage > "" then %>
<br>Name of your Department incorrect?......Or have you been listed in the wrong department?......<strong><a href="mailto:fake@fake.co.uk" title="Click to email Mandy">email Mandy</a></strong> to get it changed.
<% END IF %>
The first part of the condition works, no message if I'm logged in as 227, however the second part doesn't. I've no idea what other condition to use for the second part......can anyone help?
Thanks so much!
I have a message which I only want to show if there is a search result present, I don't want it to show if a particular UserID is logged in or the search hasn't returned any results.
If there are no search results then an error message is output. I'm stumped witht the logic for this, here's the code that I've got:
<% IF rsusernow("UserID") <> "227" OR errormessage > "" then %>
<br>Name of your Department incorrect?......Or have you been listed in the wrong department?......<strong><a href="mailto:fake@fake.co.uk" title="Click to email Mandy">email Mandy</a></strong> to get it changed.
<% END IF %>
The first part of the condition works, no message if I'm logged in as 227, however the second part doesn't. I've no idea what other condition to use for the second part......can anyone help?
Thanks so much!