I have a table which holds all the needed information of all the images on my site for my different image gallery's. Here is the table crations code:CREATE TABLE [Eaglef90].[Images]( [ImageName] [varchar](50) NOT NULL, [Game] [varchar](15) NOT NULL, [SubSet] [varchar](15) NOT NULL, [Width] [smallint] NOT NULL, [Height] [smallint] NOT NULL, [AltText] [varchar](50) NOT NULL, [ImageNumber] [smallint] IDENTITY(1,1) NOT NULL
What I want to do is pull 20 rows at a time from this table based on a where clause, so I can create a page that only has images from a certain game and subset. Since some games/subset will have more then 20 images more then one page will be used (like a tipical image gallery would do). The problem is I can not figure out the best way to write the select statement for Perl to use. I was thinking about putting everything that matched the game/subset conditions into a temp table and working form that but thought that might not be the best way so I wanted to come here and ask. Any suggestions would be nice.-- If I get used to envying others...Those things about my self I pride will slowly fade away.-Stellvia