Solved

Dreamweaver Recordset to Array; Loop Array and Perform Calculation

Posted on 2013-06-12
4
563 Views
Last Modified: 2013-07-01
We need to create arrays from a Dreamweaver recordset for two fields. In the example below they are listPrice and forexRate1.

We then need to:
- loop through the arrays
- multiplying the two fields together
- calculate the sum and the average of those multiplied fields.

The recordset is:

SELECT prList.listPrice, prForex.forexRate1
FROM (prList
LEFT JOIN prForex ON prForex.forexCode=prList.curr)
WHERE prList.listBrName='".$_SESSION["seldom"]."'
AND prList.listUnitsize='".$_SESSION["selsize"]."'

Is this possible please?
0
Comment
Question by:tweddlewalker
  • 2
4 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39240797
You can probably do this directly in the query.  I'll ask a moderator to add it to the MySQL Zone(s)
0
 

Accepted Solution

by:
tweddlewalker earned 0 total points
ID: 39279428
I'm new to Experts Exchange. An email tells me I need to take urgent action. Because I have not received suggested solutions, all I can think of doing is closing the question.

Will this do it?
0
 

Author Closing Comment

by:tweddlewalker
ID: 39289432
See above
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now