This topic is locked

multiplied with another and give the result in another?

7/11/2008 6:45:36 PM
PHPRunner General questions
G
guigosnet author

how do I want a field operations have multiplied with another and give the result in another?

S
swanside 7/13/2008

how do I want a field operations have multiplied with another and give the result in another?


Loads of info there mate.
Maybe some fields from your tables might give us something to work with, otherwise if you use the * in your sql, it will multiply things for you.

J
Jane 7/14/2008

Hi,
use Before record added/updated events on the Events tab to calculate field value.

Here is a sample:

$values["field3"] = $values["field1"]+$values["field2"];

S
swanside 7/14/2008

Seeing your reply Jane makes it abit more clearer.
You could have something like
Three fields named field_1, field_2 and field_3.
You could do something like
select field_1field_2field_3 as total