Jump to content

How to get alt tag information to my banner from database


Johnboy777

Recommended Posts

I need to bring from database the alt tag description, column name is alt_tag and put in the following section alt="description to go here"

Thanking anyone that can help me.

p.s it may be simple to you guys but I am new to all this

 

 

Code:

 

<div class="large_col floatL">

      <div class="featured">

          <div class="slider">

        <?php $i=1;if(count($banner)>0) { foreach($banner as $rows) { ?>

            <div class="slide" <?php if($i>1) echo 'style="display:none"';?>><a href="<?=$rows->ban_url?>"><img src="<?=base_url()?>banner_images/<?=$rows->ban_image?>" alt="" width="670" height="149" /></a></div>

                <?php $i++;} } ?>

        </div>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.