FPSE and custom SQL query
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > FrontPage Server Extensions for Windows > FPSE and custom SQL query




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    FPSE and custom SQL query  
Tero Lehto


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-20-05 01:47 AM

I have a guestbook that's getting awful lot of spam. So I dediced to but
hidden field MODERATED and default value HIDE. Now I want to get database
results so that records with MODERATED value HIDE are not printed.

Currently this works OK:

SELECT * FROM Guestbook ORDER BY Timestamp DESC

I would like it to be

SELECT * FROM Guestbook ORDER BY Timestamp DESC WHERE MODERATED <> "HIDE" ,

but FP SE won't accept that. What am I doing wrong? I've also tried these:

WHERE MODERATED NOT "HIDE"
WHERE MODERATED =! "HIDE"
WHERE MODERATED <> 'HIDE'

.. and so on.
.
--
Tero Lehto
http://lehto.net/tero/







[ Post a follow-up to this message ]



    Re: FPSE and custom SQL query  
Stefan B Rusynko


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-20-05 12:47 PM

Try
SELECT * FROM Guestbook WHERE MODERATED <> "HIDE" ORDER BY Timestamp DESC

Make sure the case of MODERATED matches the DB field name
--

 ________________________________________
_____
SBR @ ENJOY (-:              [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!"  (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
 ________________________________________
_____


"Tero Lehto" <tero.lehto@gmail.com> wrote in message news:ZhDHd.860$iS2.649@
reader1.news.jippii.net...
| I have a guestbook that's getting awful lot of spam. So I dediced to but
| hidden field MODERATED and default value HIDE. Now I want to get database
| results so that records with MODERATED value HIDE are not printed.
|
| Currently this works OK:
|
| SELECT * FROM Guestbook ORDER BY Timestamp DESC
|
| I would like it to be
|
| SELECT * FROM Guestbook ORDER BY Timestamp DESC WHERE MODERATED <> "HIDE" 
,
|
| but FP SE won't accept that. What am I doing wrong? I've also tried these:
|
| WHERE MODERATED NOT "HIDE"
| WHERE MODERATED =! "HIDE"
| WHERE MODERATED <> 'HIDE'
|
| .. and so on.
| .
| --
| Tero Lehto
| http://lehto.net/tero/
|
|







[ Post a follow-up to this message ]



    Re: FPSE and custom SQL query  
Tero Lehto


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-20-05 10:51 PM

Stefan B Rusynko wrote:
> Try
> SELECT * FROM Guestbook WHERE MODERATED <> "HIDE" ORDER BY Timestamp
> DESC

Thanks, this solved the the problem.

It's been a while since my SQL studies. :o

--
Tero Lehto
http://lehto.net/tero/







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:29 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register