[eluser]cobolCowboy[/eluser]
Pulling the newbie card...
I'm working behind a firewall on a localhost WAMPSERVER set up using
Apache 2.2.11
PHP 5.2.9-2
MySQL 5.1.33
and the latest release of CI
A simple M-V-C setup to draw a list of affiliate advertisers from my database.
One of the columns contains an offsite URL that points to a logo image.
I've never had a problem displaying any kind of images in this manner.
The view code looks like this:
Code:
<table class="chapter" border="2" width="100%" cellspacing="0" cellpadding="2" >
<tr>
<th>Logo</th><th>Network id</th> <th>Affiliate id</th><th>Affiliate Name</th><th>Description</th>
</tr>
<?php foreach($advs as $adv):?>
<tr>
<?php echo '<td><img src="' .$adv['affiliate_logo_URL'].'" alt="'. $adv['affiliate_nme'].' logo"></td><td>'.
$adv['network_id']. '</td><td>'.
$adv['affiliate_id']. '</td><td>'.
$adv['affiliate_nme']. '</td><td>'.
$adv['desc_txt'] . '</td>' ?>
</tr>
<?php endforeach;?>
<tr><td colspan="5"><p><?php echo 'Total number of users :'.$numadvs;?></p></td></tr>
</table>
Everything displays as expected except for the img tag. The img tag is completely ignored.
If I do a View Source in the browser, I see the tag in the source code along with the full URL and if I click the URL it displays the correct image. So why is it not being displayed in the view. I've even tried a plain img tag with the URL hardcoded in and the tag is ignored. Some URLs work and some get ignored.
There must be something I missed either in the config, or a load in the controller.
if you need more to go on, ask me.
I could use the help.