Hi,
I've got this piece of code which is simply outputting a filename which is to be used for an image...
$item_logo = $row['item_icon'];
if ( $row['item_icon'] != '' )
{
$item_img = '<img src=adr/images/items/' . $item_logo . '>';
}
if ( $row['item_icon'] == '' )
{
$item_img = '';
}
This works only for images with filenames with no spaces, but if there are spaces then it's only showing the first word at the begining of the filename.
Is there an easy way to fix this?.
Thanks. 🙂