Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - search string
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

search string

 Post Reply Post Reply
Author
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post Topic: search string
    Posted: 07 November 2005 at 10:00am

This may seem list a stupid question but I have been emersed in regex for the past two days and I forgot.

I want to prevent my moderator topic from searched and I thought editing the sql query would solve it for now. I just can remember how to write the query condtion.
 
Something like
If intForumID <> 0 OR NOT intForumID = 4 Then
 
' 4 being my moderator foum.
 
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2005 at 10:31am
If intForumID <> 0 OR intForumID <> 4 Then
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2005 at 11:07am
Thanks borg, I think that negates itself doesn't it?
 
Anyway, where I'm working is around line 490-500 on the search.asp page. I'm trying to catch the forum ID in there but the intForumID is not passing through. Any ideas?
 
What I want is, no display if forum id = 4 otherwise normal.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2005 at 11:42am
ad the line

strSQL = strSQL & " AND NOT (" & strDBTable &"Forum.forum_ID = 4 OR " & strDBTable &"Forum.forum_ID = 0) "

that added to the query will take out the forums with ID 4 or 1 .. you can use if blnAdmin = False then strSQL .... ..
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.