| Index
» Projekty
» phpMyEdit
» Fórum
» Dummy fields? |
 |
StephanieM
Založený: 08.02.2005
Príspevky: 9
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
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
|
|
|
|