Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 97097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:56:22+00:00 2026-05-10T23:56:22+00:00

i am simple cart page where it displays the content in table form and

  • 0

i am simple cart page where it displays the content in table form and I am trying to find a way to add up the Cost column then display the total price at the bottom. Does anyone have any suggestions how to do that? The part that is confusing me is that it the table is dynamically created via ASP.

My code can be found here: http://pastie.org/341676

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:56:22+00:00Added an answer on May 10, 2026 at 11:56 pm

    First off, that is a special kind of painful (asp classic in all its glory)

    What you need is another variable to hold your values, and then sum it in each loop iteration

    While Not objRS.EOF     totalCost = trim(objRS.Fields('quantity'))*trim(objRS.Fields('p_price'))     absoluteTotal = absoluteTotal + totalCost 

    …

    Wend  Response.Write absoluteTotal 

    That will output a sum of all the totals, although you would probably want to format it better with html and whatnot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple cart page that displays items that are in someones cart,
I'm trying to make a simple shopping cart. Normally if product quantity is 0
I have a products page with a link Add to Cart, when this is
I have a simple shopping cart application that displays the session's shopping cart with
I am trying to make a simple shopping cart using cookies/sessions. It just contains
I'm writing a simple shopping cart application and have hit a road block. Currently
Simple question, (Easy points!) In Delphi 2010 (with updates 4 and 5) Find in
Simple case of trying to prove I can convert NSString to NSDate . Create
In IE7, my order sample button #itmSampl isn't vertically aligned with the .add-to-cart button
I have been working on a shopping cart that the user can add/remove order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.