navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
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

 

Simple Results Issue

 
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 >> Simple Results Issue
Page: [1]
 
Guest


 
Simple Results Issue - 4/11/2001 17:39:00   
I have the following all working fine:

A page that gives me a category with products
eg

SHIRTS
yellow
red

The yellow and red lines are hyperlinks. If you click on yellow it will take you to a Results page that shows all the yellow shirts that you can choose to see. Lets say that there are 4 yellow to choose from and 3 red when you get to these respectable pages. What I cannot figure out to do is to have the initial page show me the following:

SHIRTS
yellow(4)
red(3)

Anybody know how to do this?

Cleo

Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Simple Results Issue - 4/12/2001 17:02:00   
To be honest, no.
I would imagine using a groupby would total up, but Ive never had to do an example like that. Anyone else?

(in reply to Guest)
Guest


 
RE: Simple Results Issue - 4/13/2001 20:31:00   
Hi Spooky

Sure you know how to do this. On the 1st page all that happens is there is some kind of syntax that checks the databse to see how many yellow shirts are in there and then it gives you the value in ().

I looked at someone elses source. I tried to do the same thing but I only came up with an empty (). Got the color of () that I wanted too. Heres what the code looks like on the other guys site

<a name="Prints" href="SearchForCat.asp?cat=1704">Prints</a> <font size=2 font color=#808080>(492)</font></font>

492 is how many of these prints are in the DB. Looking at something alse that I stole from somewhere, but I cannot find at the moment (I think I have it on another computer) I remember seeing that it had something to do with the VTI_Group

Im sure you either have done this or can figure it out

Cleo


(in reply to Guest)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Simple Results Issue - 4/13/2001 20:12:00   
Ok, Ill bite

This is how Id do it

"SELECT COUNT(*) as fldCount FROM Table WHERE Color in ('Yellow','Red') GROUP BY Color"


(in reply to Guest)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Simple Results Issue
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