| Index
» Projects
» phpMyEdit
» Forum
» Calculate field and try to store field in DB |
 |
wverweij
Joined: 08 Jan 2013
Posts: 1
Posted: 2013-01-08 23:32
Back to top
Reply with quote
|
2 fields used for calculate the Body Mass Index.
Field 'Lengte' is the Lenght and in field BMI I try to store some calculation with the Lengte field in the BMI field. In this example the calculaton is Lengte x Lengte.
If used only Lengte (without doing some math) then its working ok. In case I try to perform some calculation with Lengte and store it in the BMI field then result always become 0.00.
What I'm doing wrong?
$opts['fdd']['Lengte'] = array(
'name' => 'Lengte in CM',
'select' => 'T',
'maxlen' => 11,
'sort' => true
);
$opts['fdd']['BMI'] = array(
'name' => 'Body Mass Index Factor',
'select' => 'T',
'maxlen' => 21,
'sort' => true
);
// works ok
$ln = Lengte;
$opts['fdd']['BMI']['sqlw'] = '$ln';
// error: result is 0.00
$ln = (Lengte*Lengte);
$opts['fdd']['BMI']['sqlw'] = '$ln';
|
larasmith1
Joined: 24 Sep 2019
Posts: 4
Posted: 2019-09-24 11:59
Back to top
Reply with quote
|
thanks for sharing this useful information through your blog, your all blogs are amazing and I get a lot of information with the help of your blog thanks.visit my site@:-
Router Support Number
|
mcafee.com/activate
|
Linksys Router Support
|
Amile BIlls
Joined: 11 Nov 2021
Posts: 513
Posted: 2022-10-30 14:46
Back to top
Reply with quote
|
To experience an online adult store that delivers on the above for sex toys, sexy underwear, sexy lingerie, sexy outfits, adult games and more visit
성인용품사이트
|
|
Post new topic
Reply to topic
|
|
|
|