I think this thread applies to the solution I'm looking for, but being such a newb I haven't been able to get it to work correctly.
I'm using 'URLdisp' to display the word "Download" and 'URL' to link to an .mp3 audio file. However, if I don't provide a link to an audio file the word "Download" is still displayed when having nothing at all displayed would be preferable.
$opts['fdd']['AUDIO'] = array(
'name' => 'LECTURE NOTES',
'select' => '',
'maxlen' => 200,
'URLdisp' => 'Download',
'URL' => 'http://$value',
'sort' => true
);
I tried inserting
'sqlw' = 'IF($val_qas = "NULL", NULL, $val_qas)';
and then tried this,
$opts['fdd']['AUDIO'] ['sqlw'] = array(
'IF($val_qas = "NULL", NULL, $val_qas)',
'name' => 'LECTURE NOTES',
'select' => '',
'maxlen' => 200,
'URLdisp' => 'Download',
'URL' => 'http://$value',
'sort' => true
);
but neither worked.... any help would be appreciated.
|