Hello,
Here is the issue: I have a new review site. When a Featured search result comes up it shows a banner/icon in front of the query, as opposed to the standard querys with no banner/icon. The problem comes in when a client does not upload a banner/icon. In that case a rectangle box shows in its place. I need a default banner/icon to show when one is not uploaded. Here is a snippet of my code showing how the banner/icon is displayed.
Thanks for the help!!!
Here is the issue: I have a new review site. When a Featured search result comes up it shows a banner/icon in front of the query, as opposed to the standard querys with no banner/icon. The problem comes in when a client does not upload a banner/icon. In that case a rectangle box shows in its place. I need a default banner/icon to show when one is not uploaded. Here is a snippet of my code showing how the banner/icon is displayed.
PHP Code:
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><font color="red"><i class="fa fa-star"></i> Featured</font> - <i class="fa fa-<?php echo $result['item_icon'];?>"></i> <a href="display.php?id=<?php echo $result['item_id'];?>"><strong><?php echo $result['item_title'];?></a></strong> - <a href="list.php?cat=<?php echo $result['item_cat'];?>"><?php echo $category['category_name'];?></a> in <a href="list.php?loc=<?php echo $result['item_location'];?>"><?php echo $location['location_name'];?></a></h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-4">
<img width="300" height="65" src="<?php echo $result['item_banner'];?>">
</div>
....
Thanks for the help!!!
Comment