Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Calculate persistent variables for filters

phpMyEdit General     Calculate persistent variables for filters
Post new topic   Reply to topic    
 
cbonde     Joined: 27 Jan 2005   Posts: 2  
Post Posted: 2005-12-05 15:31
Back to top  Reply with quote     

Hi
I'm strugling with calculating variables for filters.

This URL calls my PME form with the variables id and year: (1998 is just an example)
holdnyt.php?id=28&aar=1998

I calculate a filter with this expression:
$calculated_year=$year;

and the value is used in:
$opts['filters'] = "YEAR = '$calculated_year'";

This seems to work initially when the form loads first time, where only records with YEAR=1998 is displayed. However, the value of calculated_year is lost when I move on with Add, Modify etc.

If I declare $calculated_year='1998'; everything works fine but that is obviously not what I want!

Does anybody have an idea why variables loose their value?

Regards

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy