Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, November 1, 2026
About Us
O nás
Magazine
Magazín
Open Source
Otvorený softvér
CVS
CVS
Services
Služby
Index  »  Projects  »  phpMyEdit  »  Forum  »  Calculate field and try to store field in DB

phpMyEdit Features     Calculate field and try to store field in DB
Post new topic   Reply to topic    
 
wverweij     Joined: 08 Jan 2013   Posts: 1  
Post 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  
Post 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  
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Odkazový formulár · Application form · Prihláška
Report bug on PLATON.SK website · Upozorniť na chybu na PLATON.SK webstránke · Terms of use · Podmienky použitia · Privacy policy · Ochrana osobných údajov