Page 8 of 8 FirstFirst ... 678
Results 71 to 74 of 74

Thread: Problem in Subtraction

  1. #71
    Join Date
    Jul 2010
    Posts
    228
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default

    is it my problem in summation of input of operation2 and the result will be appear in operation2_total input? will be resolved by using the code that you given.?

    the you given is amazing and I never think that that code is the solution, honestly now I can't code the code you given.


    Did you see my other thread about sum?

    Thank you

  2. #72
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I did have a look at this thread:

    http://www.dynamicdrive.com/forums/s...404#post243404

    If that's the one you mean, I'm not sure if I can help with that. I've never used mysql_query() and don't know what comes back from it. I imagine it would vary depending upon what's in the database. I have no idea what format the response would take. PHP in general isn't my strong point. I'm even weaker in MySQL. I don't see where anything is used in that thread or its attachments that attempts to do any kind of mathematic addition other than increasing incrementally the $ctr variable.

    If you're looking for a javascript solution, I might be able to help. One thing you should know about javascript though, and this applies to what I've contributed in this thread as well, is that if the user has javascript disabled, none of the javascript stuff will work.

    This is unlike PHP where all browsers see the same thing more or less regardless of their settings. But if you want to do your math in PHP and it involves input from the user, the user must submit a form with their input before PHP can have access to any input from them. Javascript could perform an assist here by sending new information to and fetching the results from the server via AJAX. That could make submitting a form unnecessary except for folks with javascript unavailable.

    But that's not what the javascript offered by me in this thread does. It's wholly dependent upon the user's browser.

    To do what I propose is pretty complicated though and a bit outside the purposes of this forum. You'd be better off with a paid technician and/or some sort of CMS.
    Last edited by jscheuer1; 12-16-2010 at 11:39 AM. Reason: English usage
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #73
    Join Date
    Jul 2010
    Posts
    228
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default

    I attached the image of my form.

    Thank you

  4. #74
    Join Date
    Jul 2010
    Posts
    228
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default

    I think is not possible to happen what i want using php code.I am right?because it's too complicated.

Bookmarks

Posting Permissions

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