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

phpMyEdit Configuration     Passing field values
Odoslať novú tému   Odpovedať na tému    
 
paul.mac     Založený: 26.08.2008   Príspevky: 5  
Príspevok Zaslal: 2008-09-04 13:54
Návrat hore  Odpovedať s citátom     

Hi,

I have a database table with 2 columns; level and subProject. What I want to do is filter rows (records) from the table using the values in the 'level' field based upon a value in the 'subProject' field.

To explain a little better if I have say 20 rows in the database the first 3 have a subProject code of say 7000, 7001 and 7002 I want to past this to the list view such that only those rows with a 'level' field value of say 7001 are displayed.

Iniitally I have set the filter to
$opts['filters'] = "level = '7000'";

and the URL field to:

$opts['fdd']['task']['URL'] = 'index.php?whichSubProject=PMEtable0.subProject';

This then only displays the records with a level of 7000 and the field in the taskDescription column appears as a clickable link with the above query string.

I then capture the whichSubProject using $_GET['...']
when the page is relisted and redefine the filter as

if ($whichSubProject == "PMEtable0.subProject"){$opts['filters'] = "level = PMEtable0.subProject";}

but this doesn't display those records where the level equals the value of subProject selected by clicking on the link in the taskDescription column.

I'm obviously missing something important.

Why doesn't the query string contain the field value i.e 'index.php?whichSubProject=7001' ?

Thanks

Paul

 
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