Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
| Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 19th, 2006, 07:28 AM
Registered User
Join Date: Nov 2006
Location: hyderabad, andhra pradesh, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nazia
Default Page wise display of data in a shopping cart

Hi !
I am using coldfusion and html,javascript to build a shoppingcart,
I need to display the products on the page along with the page numbers which act as links.
Just like the search pages in google have links for page numbers


Nazia Banu
  #2 (permalink)  
Old December 22nd, 2006, 04:03 PM
Friend of Wrox
Join Date: Aug 2004
Location: Orange County, CA, USA.
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts

There are a number of ways to do this. I like creating a data set on the sql database tied to the query of the user. So for example if you send a cookie or some sort of identifier to your user. Then the users cookie is tied to a table that has the results that the user requested. For example if they want to see all the smiths in your database. The query results in 42 smiths ordered alphabetically by first name. When they first run this query the record id's for the 42 smits are stored in a table tied to that user. You display the first 10 smiths. They click on next, your code goes to the temporary data to get the next set of ten rows. If they click on a link similar to google where they want the fifth batch of 10 rows. They get the last two smiths again from the tempory results set tied to that user. When they log off or after a period of time. You delete the query result data from the table.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending data from the Chp. 9 shopping cart cavanami BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 6 October 24th, 2007 02:08 AM
Shopping Cart seannie ASP.NET 2.0 Basics 0 December 12th, 2006 10:28 AM
session in shopping cart page Jane Siu Beginning PHP 1 November 22nd, 2006 01:49 AM
C# shopping cart franknguyen ASP.NET 1.x and 2.0 Application Design 1 January 5th, 2004 10:54 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.