Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, April 29, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Re: Virtual Fields

phpMyEdit General     Re: Virtual Fields
Post new topic   Reply to topic    
 
Zack     Joined: 23 Jul 2004   Posts: 5  
Post Posted: 2004-08-25 02:17
Back to top  Reply with quote     

This is a "Virtual Field" that I need some help on. The field is getting its value from the records cid column ('sql' => 'PMEjoin1.cid',). How do I take the value and use it to get the value of a field in another table ? I was thinking as shown below. but I got something wrong.

Code:
$opts['fdd']['licensed_status'] = array(
  'name'     => 'Licensed status',
  'select'   => 'T',
  'sql'      => 'PMEjoin1.cid',
  'colattrs' => 'align="center" ',
  'options'  => 'V',
  'maxlen'   => 65535,
  'values'   => array( 'table' => 'categories', 'column' => 'cid', 'description' => 'ak' ),
  'URL'      => '$value',
  'URLdisp'  => 'Status Page',
  'URLtarget' => '_blank'
);


The value I get from PMEjoin1.cid I want to use in the 'values' array. The current output now is PMEjoin1.cid not the value I want from the array.

$value = SELECT ak FROM categories WHERE cid = 'PMEjoin1.cid'

What did I miss? ?:-|

 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-08-25 10:51
Back to top  Reply with quote     

afaik, if 'sql' is set, 'values' is ignored. you need to use new 'join' option instead of 'sql'. see cvs documentation with an example which should help a lot.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy