Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: adding numbers.

  1. #1
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts

    adding numbers.

    ----------------------
    SOLVED.
    ----------------------
    hello,
    i need to know how to add numbers in asp
    i would like to multiply cost by ammount of items then add shipping.
    eg.
    2000.00 x 3 + 5.00 = total

    its coming out of an access db.


    i have no idea where to start.


    thanks in advance


    -baleric

    ----------------------
    SOLVED.
    ----------------------
    Last edited by Baleric; 04-28-2006 at 01:55 AM.

  • #2
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts
    silly mistake i was inserting a $ sign in the database and it was getting confused.

    Code:
    dim total
    total = rs("cost") * rs("ammount") + rs("Shipping")
    
    <%= total %>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •