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  »  Dummy fields?

phpMyEdit General     Dummy fields?
Odoslať novú tému   Odpovedať na tému    
 
StephanieM     Založený: 08.02.2005   Príspevky: 9  
Príspevok Zaslal: 2005-04-08 21:17
Návrat hore  Odpovedať s citátom     

Hi all:

Is it possible to display dummy fields that don't actually exist in the database but are calculated on the fly from other sources? This would be very nice for generating links and queries to other tables, displaying totals and counts and so on. This would be a nice extension to the ['sql'] mechanism.

Sometimes I want the same info displayed twice: perhaps a phone number, then a "call" link that invokes a dialling script. Perhaps a stock photo database needs a View Thumbnail and a Buy now link, both of which use the file's name - but the filename only appears once in the database. However, neither the Thumbnail nor the Buy columns have real fields in the database.

Or can I do this already?

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2005-04-08 21:51
Návrat hore  Odpovedať s citátom     

you can do
'sql' => 'file_name'

and you have field 'file_name' twice...

 
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