| Index
» Projekty
» phpMyEdit
» Fórum
» Duplicating Fields |
 |
emanresu
Založený: 16.10.2010
Príspevky: 3
Zaslal: 2010-10-16 09:20
Návrat hore
Odpovedať s citátom
|
I have a 2 URL fields which use the same field name [ID] but have two different generated links
e.g. Http://www.mysite.com/images/[ID].jpg
and Http://www.mysite.com/products/[ID].txt
If I use the ID field twice, one of the instances is not shown.
Where should I look to sort this?
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-10-16 14:52
Návrat hore
Odpovedať s citátom
|
If two fields in one table have the same name, you need to rename one of the fields.
|
emanresu
Založený: 16.10.2010
Príspevky: 3
Zaslal: 2010-10-16 16:00
Návrat hore
Odpovedať s citátom
|
Its one mysql field being called twice like so:
$opts['fdd']['an_id'] = array(
'name' => 'Product Image ',
'select' => 'T',
'maxlen' => 8,
'sort' => true,
'URL' => 'Http://www.mysite.com/images/$value.jpg ',
'URLtarget'=> '_blank'
);
$opts['fdd']['an_id'] = array(
'name' => 'Product Info ',
'select' => 'T',
'maxlen' => 8,
'sort' => true,
'URL' => 'Http://www.mysite.com/products/$value.txt ',
'URLtarget'=> '_blank'
);
For some reason it only shows one column instead of two.
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-10-16 17:36
Návrat hore
Odpovedať s citátom
|
The second call over-writes the first call. Search for CONCAT in forum posts. Instead of using the built in URL feature, you will have to use CONCAT to create HTML code for 2 links which will be displayed in a single TD tag.
|
emanresu
Založený: 16.10.2010
Príspevky: 3
Zaslal: 2010-10-25 19:37
Návrat hore
Odpovedať s citátom
|
Thanks. That works a treat.
Very impressed as to how powerful PME is. Can now slim down my db structure and some mysql routines by doing them with PME.
Thanks to the team.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|