Go Back   Tech Support Forum > Design Forum > Web Design & Development

Join Tech Support Forum Today

Reply
 
Thread Tools Search this Thread
 
Old 03-04-2010, 07:23 AM   #1
Registered Member
 
Join Date: Dec 2009
Posts: 26
OS: vista


[SOLVED] Ajax/php/java problem

Hello all,

I'm having a problem with adding up the values that are displayed in a table.

I won't copying and paste all my source code here as there is a lot of it and i think people could understand my problem abother way.

If you look at the following link:

http://www.w3schools.com/PHP/php_ajax_database.asp

This shows a drop down menu which when selected brings information held in a database based on the selection.
My code is adapted from that of the link above, except i have two drop down menus both accessing different tables in the database.

What i'm trying to do is when the user selects an option from the drop down menus, in a table below the total age is summed.

For example from the link above if the user selected Peter Griffin from the first menu and Lois Griffin from the second menu in a table below their combined
age would be calaculated (in this example 40+41 so 81 would be displayed below)

I've searched high and low and this has been causing me problems for weeks now, any help or adivce would be greatly appreciated.

Thanks for taking the time to read this.
pb1uk

__________________
pb1uk is offline   Reply With Quote
Old 03-11-2010, 02:42 PM   #2
Registered Member
 
Join Date: Dec 2009
Posts: 26
OS: vista


Re: Ajax/php/java problem

Seems like people are getting tired of my questions lol! I'm still learning so apologies if there are a few! I have solved the above problem so i'd thought i would share it with you all, if anyone is interested.

http://www.codemiles.com/java/calcul...ipt-t3195.html

was extremely helpful

__________________
pb1uk is offline   Reply With Quote
Old 03-11-2010, 04:53 PM   #3
TSF Articles Team, Games Team | Moderator
 
Redeye3323's Avatar
 
Join Date: Sep 2009
Location: Norfolk, East Anglia, England, United Kingdom, Europe, Earth, Milky Way, Universe
Posts: 10,381
OS: Windows 7 Pro 64-bit SP1 :D

My System

Re: Ajax/php/java problem

Must have missed this thread lol

Glad to hear you sorted it and thanks for explaining how.

Could you mark this thread as Solved under the Thread Tools menu.

Cheers,
Redeye3323
__________________

TSF Articles Team(YouTube Editor-in-Chief) & TSF Games Team(Sectional Moderator)
Redeye3323 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question





Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

RV & Travel Trailer Communities

Our RV & Travel Trailer sites encompasses virtually all types of Recreational Vehicles, from brand-specific to general RV communities.

» More about our RV Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


All times are GMT -7. The time now is 01:15 AM.


Copyright 2001 - 2010, Tech Support Forum

Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security