Is there any way I can know the numer of rows returned by a database query?
I need to know if it is 0 so as to hide buttons.
Jonathan Blitz
AnyKey Limited
Israel
I need to know if it is 0 so as to hide buttons.
Jonathan Blitz
AnyKey Limited
Israel
--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/
Microsoft? FrontPage? Newsgroups FAQ
http://www.net-sites.com/sitebuilder/newsgroups.asp
> I need to know if it is 0 so as to hide buttons.
> Jonathan Blitz
> AnyKey Limited
> Israel
Is there no variable that indicates the number of rows returned?
If there are no records returned, there are no buttons either.
--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/
Microsoft? FrontPage? Newsgroups FAQ
http://www.net-sites.com/sitebuilder/newsgroups.asp
> I need to know if it is 0 so as to hide buttons.
> Jonathan Blitz
> AnyKey Limited
> Israel
--
~ Kathleen Anderson
MVP FrontPage
> Is there no variable that indicates the number of rows returned?
> If there are no records returned, there are no buttons either.
>> Is there any way I can know the numer of rows returned by a database
>> query?
>> I need to know if it is 0 so as to hide buttons.
>> Jonathan Blitz
>> AnyKey Limited
>> Israel
You could add another DRW to your page to count the numbers of records
returned and if it's greater than zero, write out your buttons using some
script.
--
~ Kathleen Anderson
MVP FrontPage
> Is there no variable that indicates the number of rows returned?
> If there are no records returned, there are no buttons either.
>> Is there any way I can know the numer of rows returned by a database
>> query?
>> I need to know if it is 0 so as to hide buttons.
>> Jonathan Blitz
>> AnyKey Limited
>> Israel
<%count = fp_rs.RecordCount%>
--
Stephen Travis,
Microsoft MVP - FrontPage
> Is there no variable that indicates the number of rows returned?
> If there are no records returned, there are no buttons either.
> --
> ~ Kathleen Anderson
> Microsoft MVP - FrontPage
> Spider Web Woman Designs
> http://www.spiderwebwoman.com/resources/
> Microsoft? FrontPage? Newsgroups FAQ
> http://www.net-sites.com/sitebuilder/newsgroups.asp
> > Is there any way I can know the numer of rows returned by a database
> > query?
> > I need to know if it is 0 so as to hide buttons.
> > Jonathan Blitz
> > AnyKey Limited
> > Israel
<% if fp_rs.RecordCount != 0 then %>
> <%count = fp_rs.RecordCount%> > -- > Stephen Travis,
> > Is there no variable that indicates the number of rows returned?
> > -- > > ~ Kathleen Anderson
> > > I need to know if it is 0 so as to hide buttons. > > > Jonathan Blitz
<a onclick="location =
'DealerHistoryDisplay.asp?DealerCode=<%=FP_FieldURL(fp_rs,"InhouseCode")%>&
isitId=<%=FP_FieldURL(fp_rs,"VisitId")%>'">
<button name="Next" style="width: 80; height:
30">Next</button></a></p>
<% end if %>
> Microsoft MVP - FrontPage
rows
> > selected.
> > If there are no records returned, there are no buttons either.
> > Microsoft MVP - FrontPage
> > Spider Web Woman Designs
> > http://www.spiderwebwoman.com/resources/
> > Microsoft? FrontPage? Newsgroups FAQ
> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > > Is there any way I can know the numer of rows returned by a database
> > > query?
> > > AnyKey Limited
> > > Israel
--
Stephen Travis,
Microsoft MVP - FrontPage
> <% if fp_rs.RecordCount != 0 then %>
> > <%count = fp_rs.RecordCount%> > > -- > > Stephen Travis,
> > > Is there no variable that indicates the number of rows returned?
> > > -- > > > ~ Kathleen Anderson
> > > > I need to know if it is 0 so as to hide buttons. > > > > Jonathan Blitz
> <a onclick="location =
> 'DealerHistoryDisplay.asp?DealerCode=<%=FP_FieldURL(fp_rs,"InhouseCode")%>&
> isitId=<%=FP_FieldURL(fp_rs,"VisitId")%>'">
> <button name="Next" style="width: 80; height:
> 30">Next</button></a></p>
> <% end if %>
> > Place this script inside of your DRW;
> > Microsoft MVP - FrontPage
> > > I am talking about buttons I add myself - not directly connected to the
> rows
> > > selected.
> > > If there are no records returned, there are no buttons either.
> > > Microsoft MVP - FrontPage
> > > Spider Web Woman Designs
> > > http://www.spiderwebwoman.com/resources/
> > > Microsoft? FrontPage? Newsgroups FAQ
> > > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > > > Is there any way I can know the numer of rows returned by a database
> > > > query?
> > > > AnyKey Limited
> > > > Israel
> --
> Stephen Travis,
> Microsoft MVP - FrontPage
'DealerHistoryDisplay.asp?DealerCode=<%=FP_FieldURL(fp_rs,"InhouseCode")%>&Quote:> > What I am tring to do is make a button appear only if there are rows
> > returned from s query.
> > So in the DRW are I have entered the following:
> > <% if fp_rs.RecordCount != 0 then %>
> > <a onclick="location =
> > > Place this script inside of your DRW;
> > > <%count = fp_rs.RecordCount%>
> > > --
> > > Stephen Travis,
> > > Microsoft MVP - FrontPage
> > > > I am talking about buttons I add myself - not directly connected to
the
> > rows
> > > > selected.
> > > > Is there no variable that indicates the number of rows returned?
> > > > If there are no records returned, there are no buttons either.
> > > > --
> > > > ~ Kathleen Anderson
> > > > Microsoft MVP - FrontPage
> > > > Spider Web Woman Designs
> > > > http://www.spiderwebwoman.com/resources/
> > > > Microsoft? FrontPage? Newsgroups FAQ
> > > > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > > > > Is there any way I can know the numer of rows returned by a
database
> > > > > query?
> > > > > I need to know if it is 0 so as to hide buttons.
> > > > > Jonathan Blitz
> > > > > AnyKey Limited
> > > > > Israel
<p>There are a total of <%=fp_rs.RecordCount%> records.</p>
--
Stephen Travis,
Microsoft MVP - FrontPage
> > Fine.
> > --
> > Stephen Travis,
> > Microsoft MVP - FrontPage
> > > What I am tring to do is make a button appear only if there are rows
> > > returned from s query.
> > > So in the DRW are I have entered the following:
> > > <% if fp_rs.RecordCount != 0 then %>
> > > <a onclick="location =
> 'DealerHistoryDisplay.asp?DealerCode=<%=FP_FieldURL(fp_rs,"InhouseCode")%>&
> > > > <%count = fp_rs.RecordCount%> > > > > -- > > > > Stephen Travis,
> > > > > Is there no variable that indicates the number of rows returned?
> > > > > -- > > > > > ~ Kathleen Anderson
> > > > > > I need to know if it is 0 so as to hide buttons. > > > > > > Jonathan Blitz
> > > isitId=<%=FP_FieldURL(fp_rs,"VisitId")%>'">
> > > <button name="Next" style="width: 80; height:
> > > 30">Next</button></a></p>
> > > <% end if %>
> > > > Place this script inside of your DRW;
> > > > Microsoft MVP - FrontPage
> > > > > I am talking about buttons I add myself - not directly connected to
> the
> > > rows
> > > > > selected.
> > > > > If there are no records returned, there are no buttons either.
> > > > > Microsoft MVP - FrontPage
> > > > > Spider Web Woman Designs
> > > > > http://www.spiderwebwoman.com/resources/
> > > > > Microsoft? FrontPage? Newsgroups FAQ
> > > > > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > > > > > Is there any way I can know the numer of rows returned by a
> database
> > > > > > query?
> > > > > > AnyKey Limited
> > > > > > Israel
1. Return sing database row into variable and display this in-line in text
Hello,
I have a query "select change from wijzigingen where date
= (select max(date) from wijzigingen"
This returns me a single row with a single variable.
Question 1 : How can I put the results into a variable?
Question 2 : How can I display this variable on the page
inside basic text?
Thanks,
Simon
2. DID EVERYONE GET THE BETA TEST SURVEY
3. Changing message for no rows on database query
5. limited record number returned with Database regionwizard
6. IBM Web Browser observation
7. Database Query Returning ALL Records Instead of Only Requested Records
8. Database query return into form fields won't submit onwards..
9. database query return nothing from IIS
10. database query forms returns all records when no search string specified
11. Formatted Numbers in Database Query
12. "No Records Returned" message from Database query