Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Dreamweaver Recordset to Array; Loop Array and Perform Calculation

Posted on 2013-06-12
4
Medium Priority
?
601 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 111

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

722 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