justinlong Posted July 28, 2008 Share Posted July 28, 2008 Let me start by telling you about what I am using, doing and trying to acheive. I am using the CodeIgnitor framework along with jQuery to immitate the panic coda slider technique for a site I am doing. The site that I am building is http://www.bmwinvoice.com. I am trying to get the ten pictures of the 10 series to be the tabs that are created to switch between panels. So when a user clicks on a series picture it will switch to that panel. All of my infoformation is being pulled from the database and that is where my problems is. I am not that fluent in PHP to know what to do. Here is my code that I am using to display the pictures of the vehicles. <div id="series_list"> <?php foreach($all_series as $s): extract($s); // every column in the database is now a variable // code below here gets repeated for each series ?> <div class="series"> <a href="/<?=$seriesid;?>/"><img src="<?=$img?>" class="corners iradius24 iradiae1111 icolors#FF0000 coda_line_up" alt="<?=$name?>" /></a></div><div> <a href="/<?=$seriesid;?>/" class="series_link noshow"><?=$name?></a> </div> <?php endforeach; ?> </div> <!-- /series_list --> </div><!-- Ends wrapper 2 --> <div id="models_in_series" class="nosho"> <?php foreach($all_models as $seriesid=>$series): ?> <div id="<?=$seriesid?>"> <?php foreach ($series as $model): extract($model); ?> <div class="model <?="s-$seriesid $modelid"?>"> <a href="/<?=$seriesid;?>/<?=$modelid?>/"><img src="<?=$img?>" class="corners iradiae1111 iradius24 iborder3 icolors#FF0000" alt="" /></a> <a href="/<?=$seriesid;?>/<?=$modelid?>/"><?=$name?></a> </div> <?php endforeach; ?> </div> <!-- /<?=$seriesid?> --> <?php endforeach; ?> </div> <!-- /models_in_series --> I am using this code library http://www.ndoherty.com/blog/category/coda-slider/ for the slide features. Which creates the panels with a unique hashed id for each tab. I am wanting to have the picture be the selector the tab and when someone clicks on the tab to just show that series. Any ideas or suggestiosn on how to do that Link to comment https://forums.phpfreaks.com/topic/116934-help-with-phpmysqljquery/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.