anthelo Posted June 8, 2011 Share Posted June 8, 2011 Hello, What im trying to do is ''Featured Content Slider Using jQuery http://demo.webdeveloperplus.com/featured-content-slider/'' When click on an thumb show in the content. Any help please, i could only make work the thumbs cant make the content <div id="featured"> <ul class="ui-tabs-nav"> <?php $query = "SELECT * FROM tblnews AS tbln ORDER BY tbln.Id DESC LIMIT 4"; $result = mysql_query($query); $tabID = array(1, 2, 3, 4); foreach ($tabID as $id) { $row = mysql_fetch_assoc($result); ?> <li class="ui-tabs-nav-item" id="nav-fragment-<?php echo($id);?>"><a href="#fragment-<?php echo($id);?>"><img src="<?php echo html_entity_decode($row['Thumb']);?>" alt="" /><span><?php echo html_entity_decode($row['Title']);?></span></a></li> <?php } ?> </ul> <?php foreach ($tabID as $id) { $row = mysql_fetch_assoc($result); ?> <div id="fragment-<?php echo($id);?>" class="ui-tabs-panel"> <img src="<?php echo html_entity_decode($row['Thumb']);?>" alt="" /> <div class="info" > <h2><a href="#" ><?php echo html_entity_decode($row['Title']);?></a></h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt condimentum lacus. Pellentesque ut diam....<a href="#" >read more</a></p> </div> </div> <?php } ?> </div> [code] Thank you Link to comment https://forums.phpfreaks.com/topic/238755-featured-content-slider/ Share on other sites More sharing options...
trq Posted June 8, 2011 Share Posted June 8, 2011 Can you please be a little more vague? Link to comment https://forums.phpfreaks.com/topic/238755-featured-content-slider/#findComment-1226882 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.