[thelist] ASP Question: If there is nothing to pull from the database...

Paul Backhouse paul.backhouse at 2cs.com
Thu Dec 27 11:14:51 CST 2001


I normally use this:

<%
If objRS.Eof AND objRS.Bof Then
%>
Sorry, there are no comments about this photo
<%
Else
%>
what ever you want to do here
<%
End If
%>

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Christian Anderson
Sent: 24 December 2001 14:49
To: thelist at lists.evolt.org
Subject: [thelist] ASP Question: If there is nothing to pull from the
database...


Hi everyone,

I am adding a thing to allow people to leave comments about the photos on my
website, and have just thought of something that I dont know how to do :)

If there are no comments for the photo, is there a way to make it say "there
is nothing, be the first to comment!"?  Like if the script looks in the
database and finds there is no comments for that photo, can it just say
that, and skip all the rest of the stuff?

Is that clear as mud or what?  heh... Im just too tired to write properly
right now.  I think that you will kinda understand what I mean though :)

Christian Anderson
URL: http://www.photokyo.com



--
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !






More information about the thelist mailing list