Hello all;
This is a hard question to explain, so hopefully I can get it right.
I would like to Display like [Top 3] items from a specific Table.
OK. Here we go. (Bear with me on this please, I am going to try to explain the best that I can)
==========================
==========
==========
==========
=====
Table Name = CatTypes
Fields from this table = CatTypeID | CatType | Enabled
Table Name = Cats
Fields from this table = CatID | CatTypeID | Cat
Table Name = Content
Fields from this table = ContentID | CatID | PName | Impressions
==========================
==========
==========
==========
=====
In Table = CatTypes
The Following (Just to list a few for this example)
CatTypeID CatType Enabled
2 Company1 1
3 Comapny2 1
4 Company3 1
--------------------
In Table = Cats
The Following (Example to match the Above 3)
CatID CatTypeID Cat
97 2 Window Software
100 3 Computer Parts
105 4 Home/Office Products
-------------------------
In Table = Content
The Following (Example to match the above 2 Tables)
ContentID CatID PName Thumbnail impressions
18 97 Windows XP Pro /images/winxp.jpg 50
75 100 Asus Motherboard /images/Asus.jpg 55
156 105 Executive Desk /images/Desk.jpg 90
-------------------------
URL Would be something like this
content.asp?contentid=<%=r
s1("Conten
tID")%>&ca
tid=<%=rs1
("CatID")%
>
content.asp?contentid=18&c
atid=97
This would display the page with: Windows XP Pro
-------------------------
OK, this is what I am wanting to do.
Going to use the following site as an Example:
http://www.walmart.com/If you look at the site, you will see the following:
--------------------------
-------
Relax under the sun
Explore the great outdoors
Splash, Swing and Slide
Freshen Up Your Bedroom
Everything You Need for Baby
--------------------------
-------
This is something similuar that I need to do for out site.
In the case of the examples that I have given above, It would be on the lines of this:
Microsoft Windows Software
(In this area, would need to get the [Top 3] of this Value in the Cats.Cat Field and Content.PName
And list the 3 items here)
Computer Parts and Accessories
(In this area, would need to get the [Top 3] of this Value in the Cats.Cat Field and Content.PName
And list the 3 items here)
Home & Office Products
(In this area, would need to get the [Top 3] of this Value in the Cats.Cat Field and Content.PName
And list the 3 items here)
==========================
=====
I hope that this makes since, and that you all were able to follow me on it.
I hope that it is not an over-kill of information that was not needed, (or) that I got in enough information
That is needed in order to provide you all with everything?
Thanks All;
Carrzkiss (will award 500-Points for a Working Example only)