Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Assitance with code from instructions

phpMyEdit General     Assitance with code from instructions
Post new topic   Reply to topic    
 
weijiao     Joined: 20 Jan 2008   Posts: 2  
Post Posted: 2008-01-20 01:47
Back to top  Reply with quote     

I am new at this so my question might be trivial.

I want to utilise a simple function as set out in the documentation but I cannot get the code right because I do not know how to write code from the examples give.

If this:

Example 4-16. Table lookup restriction

$opts['fdd']['col_name']['values']['table'] = 'extractTable';
$opts['fdd']['col_name']['values']['column'] = 'extractColumn';
$opts['fdd']['col_name']['values']['description'] = 'extractDescription'; // optional

looks like this in working code:

$opts['fdd']['staff_id'] = array(
'name' => 'Staff ID',
'select' => 'T',
'maxlen' => 11,
'default' => '0',
'required' => true,
'sort' => true,
'values' => array(
'table' => 'Staff',
'column' => 'id',
'description' => 'Last_name'
)

How should the following look in code if the relevant field descriptions are First_name and Last_name? ie what do I have to do to show both First_name and Last_name in the above ? I can use either, butt not both.

Example 4-17. Advanced table lookup

$opts['fdd']['col_name']['values']['description']['columns'][0] = 'desc_column_1';
$opts['fdd']['col_name']['values']['description']['columns'][1] = 'desc_column_2';
$opts['fdd']['col_name']['values']['description']['divs'][0] = ' ';

If there is a reference that explains the structure representations used in the documentation, that would be very helpful.

Thanks in advance

 
weijiao     Joined: 20 Jan 2008   Posts: 2  
Post Posted: 2008-01-20 04:31
Back to top  Reply with quote     

Doug,

Thank you - now I can see how it works.
I have spent hours and hours trying to work this out by myself.

WJ

 
inbrunst     Joined: 14 Apr 2009   Posts: 8  
Post Posted: 2009-04-14 12:45
Back to top  Reply with quote     

Hi!
I´m having the same problem understanding the documentation.
What did Doug tell? Does anybody know?
I could really need some help here...
Thanks 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