Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 22. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Show Images from a second table referred by ID

phpMyEdit General     Show Images from a second table referred by ID
Odoslať novú tému   Odpovedať na tému    
 
coach     Založený: 21.10.2005   Príspevky: 6  
Príspevok Zaslal: 2007-01-04 18:48
Návrat hore  Odpovedať s citátom     

Hello,

this solution works fine:
http://opensource.platon.sk/forum/projects/viewtopic.php?t=704
when the path of the image is stored in one table.

Now I would like to show the images from a second table which is referred by image_id:

Kód:

$opts['fdd']['img1'] = array(
  'name'     => 'Image 1',
  'select'   => 'T',
  'maxlen'   => 64,
  'default'  => '0',
  'sort'     => true,
  'sql|LF'   => "IF(img1 = '', NULL, CONCAT('<img src=\"', img1, '\" border=\"0\" height=\"100\" width=\"100\"><br />', img1))",
  'values'   => array(
        'table' => 'images',
        'column' => 'image_id',
        'description'=> array(
               'columns' => array(
                     '0' => 'img_path'
                      ),
               ),
      )

);


The problems are

1.) it will show the ID of the images, not the path

2.) the html string is html escaped


Any idea?

Coach

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov