Re: [kcmedia] PDF in Products
Hi, KC -
You need pose this as an IF statement along the lines of...
"IF the upload has a pdf extension then do xyz."
The statement can be expressed in code as follows:
<?php if ($upload['extension'] == 'pdf'): ?><img src="pdf_icon.gif" />
<?php elseif ($upload['extension'] == 'doc'): ?><img src="word_icon.gif" />
<?php elseif ($upload['extension'] == 'zip'): ?><img src="zip_icon.gif" />
<?php else: ?><img src="blank_icon.gif" />
<?php endif ?>
Hope this helps.
:0)
Perchpole