|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how do I enter the code to "add up" im MySQL
I have made a website that has a lot of forms which so far are OK, except one part of the form asks for an amount input. This is where I am getting stuck.
How do I get the users numerical input to add up using the MySQL web interface that my ISP has given me. EG: user inputs "4" in the amount box, which is representing an item for £2.00...how do I get the result to come back as "8" Appologies if this is not as simple as I'm hoping it is. Any pointers in the right direction would be appreciated. Thanks in advance Strawpuppy |
|
#2
|
||||
|
||||
|
For sql side it'll be something like
select <var>*price as total from items where <var> is from your program.
__________________
And you know I mean that. |
|
#3
|
|||
|
|||
|
Thanks
I will have a go at that..
It will take a few days as my ISP is sending me a new password to access my cgi-bin...That can take up to a week! Thanks again Strawdog |
|
#4
|
||||
|
||||
|
>>as my ISP is sending me a new password to access my cgi-bin
LOL! pffft. Where did you find those dorks? |
|
#5
|
|||
|
|||
|
Simple
I managed to find a site that listed 100's of ISP's in a table format that included costs, what you get, ratings, ect...plus a simple html link to the site....
They offered £6.99 p\m, 250mb web space, fp extensions, plus all the stuff that I'm now trying to get my head round to use...... This is my 4th ISP in 4 years, and I will try and stick with them cause they really do ....Answer your queries (sort of) and they do....TRY Really HARD......If your in Biz you know what a pain we can be........ Anyhow, my lastest Dumb question if you fancy replying....IS: Can I download MySQL and use it locally on my Win98, (so I can practice until my ISP gets that password sorted?) Tried finding the answer to that and so far have failed.... Hope it gives you a smile not a groan! Thanks again Strawpuppy |
|
#6
|
||||
|
||||
|
Re: Simple
Quote:
yes! yes you can!!! .. .. .... oh, you wanted to know how as well? A great tool i found was php triad. It installs PHP, Apache, and mySQL. it's quite nice =) http://sourceforge.net/project/show...elease_id=75430 just get the windows exe it has highlighted, install, and you're set to go. Enjoy
__________________
Quick, think of something geeky to say before they catch on! Mozilla is your friend! Web Site |
|
#7
|
|||
|
|||
|
Thanks going there now!
Don't be suprised if you see me pm with about 100mb of what the hec's this? and a trolley full of asprin and valium....
Really though! Thanks Sincerely Strawpuppy |
|
#8
|
||||
|
||||
|
Hey, strawpuppy, I wasn't groaning. It's just that in this industry it's not a good sign when a company makes you wait for such little things...
|
|
#9
|
|||
|
|||
|
That I do know...
Oh Al Capone...
The fault is all mine. I live like a hermit and have lost all of my "Social Skills". Guess it's just the way it comes out. Truce? |
|
#10
|
||||
|
||||
|
No worries mate
![]() |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > how do I enter the code to "add up" im MySQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|