Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Calculate persistent variables for filters

phpMyEdit General     Calculate persistent variables for filters
Odoslať novú tému   Odpovedať na tému    
 
cbonde     Založený: 27.01.2005   Príspevky: 2  
Príspevok Zaslal: 2005-12-05 15:31
Návrat hore  Odpovedať s citátom     

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

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov