| Index
» Projekty
» phpMyEdit
» Fórum
» join 2 table [solved] - join 2 cloumn [not solved] |
 |
spuri
Založený: 29.09.2004
Príspevky: 4
Zaslal: 2004-09-29 22:59
Návrat hore
Odpovedať s citátom
|
I would like to make something similar than it is in the old examples:
http://phpmyedit.org/configuring.php
Full table lookups
or at least
Simple table lookups
is there updated example files available for download somewhere? what i could find in the forum that's much more difficult :( or is that truth, is this this much more difficult newer version ??? should i use older version or what could i do?
thanks
spuri
Naposledy upravil spuri dňa 2004-10-14 15:36, celkom upravené 1 krát
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-09-30 09:38
Návrat hore
Odpovedať s citátom
|
for me it's easy :)
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html#AEN807
you just have to know which is the other 'table', which 'column' you want to join to, and what you want to be displayed ('description')
|
spuri
Založený: 29.09.2004
Príspevky: 4
Zaslal: 2004-10-04 12:17
Návrat hore
Odpovedať s citátom
|
thanks this helped me a lot
only thing i am looking for to make sum of coloumns
i hope phpMyEdit-report.class could help
thanks
s
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-10-04 15:19
Návrat hore
Odpovedať s citátom
|
maybe
'sql' => 'column1 + coulmn2 + column3 '
will work...
|
spuri
Založený: 29.09.2004
Príspevky: 4
Zaslal: 2004-10-14 14:38
Návrat hore
Odpovedať s citátom
|
I have 2 similar tables:
szla_partner_pi:
ID
partner
szla_partner_rg:
ID
partner
I use partner tables to fill pcode(id in partner table) from dropdown list this works for me with 1 table but how can i diaplay partners from both?
$opts['fdd']['pcode'] = array(
'name' => 'Partner',
'select' => 'T',
'maxlen' => 10,
'default' => '0',
'required' => true,
'sort' => true
);
$opts['fdd']['pcode']['values']['table'] = 'szla_partner_pi';
$opts['fdd']['pcode']['values']['column'] = 'pcode';
$opts['fdd']['pcode']['values']['description'] = 'partner'; // optional
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|