Solved

Dreamweaver Recordset to Array; Loop Array and Perform Calculation

Posted on 2013-06-12
4
593 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 110

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

624 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