CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 How to Find the X Y Intersect

Print topic Send  topic

Author Message
dodaniel

Posts: 43
Posted: 09/12/2016, 8:41 AM

I have an SQL table that contains a list of Locations going across the X and Y axis with the distance to each location at the intersection.

For example:

* | A | B | C | D
A | 0 | 7 | 2 | 8
B | 7 | 0 | 9 | 4
C | 2 | 9 | 0 | 6
D | 8 | 4 | 6 | 0

If Location B and Location C are the 2 locations selected from the drop-down boxes, I would want 9 to be stored in the Distance field.

How would I go about having a user select a location from an Origin drop-down and a Destination drop-down and have CCS find the correct number for the intersection in the SQL table?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.