navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

NOT EQUAL or NOT LIKE query

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> NOT EQUAL or NOT LIKE query
Page: [1]
 
ACEDISH

 

Posts: 176
Joined: 9/30/2002
From: Manassas, Virginia
Status: offline

 
NOT EQUAL or NOT LIKE query - 6/27/2003 23:00:18   
what am i doing wrong?

I am trying to query the database and not show results for act_status of " RATED" or " NORATING" when i use this it still shows them..
I alo replace <> with NOT LIKE and had same results

fp_sQry=" SELECT * FROM Results WHERE (username =  ' ::username::'  AND install_status =  ' ::install_status::'  AND (act_status <> ' ::RATED::'  OR act_status <> ' ::NORATING::' )) ORDER BY install_date DESC" 


_____________________________

" Anyone who can only think of one way to spell a word obviously lacks imagination"
BeTheBall

 

Posts: 6359
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: NOT EQUAL or NOT LIKE query - 6/29/2003 18:23:37   
From your post, I assume that RATED and NORATING are values in your db. Whenever you put something in between two pairs of colons (::) that signifies a form field, not a database field. Try this:

fp_sQry=" SELECT * FROM Results WHERE (username = ' ::username::' AND install_status = ' ::install_status::' AND (act_status <> ' RATED' OR act_status <> ' NORATING' )) ORDER BY install_date DESC"

If the above doesn' t work, try putting double quotes around NORATING and RATED. If I were at work I could tell you for sure, but now that I have only Windows XP Home on my PC at home I can' t test anything :).

(in reply to ACEDISH)
ACEDISH

 

Posts: 176
Joined: 9/30/2002
From: Manassas, Virginia
Status: offline

 
RE: NOT EQUAL or NOT LIKE query - 7/1/2003 22:08:15   
Thanks, That works fine

_____________________________

" Anyone who can only think of one way to spell a word obviously lacks imagination"

(in reply to ACEDISH)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> NOT EQUAL or NOT LIKE query
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts