Johnboy777 Posted November 24, 2017 Share Posted November 24, 2017 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> Quote Link to comment Share on other sites More sharing options...
phpmillion Posted November 24, 2017 Share Posted November 24, 2017 alt="<?=$rows->alt_tag?>" 1 Quote Link to comment Share on other sites More sharing options...
Johnboy777 Posted November 24, 2017 Author Share Posted November 24, 2017 Thanks that as worked fine Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.