| Index
» Projects
» phpMyEdit
» Forum
» Dummy fields? |
 |
StephanieM
Joined: 08 Feb 2005
Posts: 9
Posted: 2005-04-08 21:17
Back to top
Reply with quote
|
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
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
Posted: 2005-04-08 21:51
Back to top
Reply with quote
|
you can do
'sql' => 'file_name'
and you have field 'file_name' twice...
|
|
Post new topic
Reply to topic
|
|
|
|