Dear All,
I'm going to put some submenus into tabs and put its contents there. i want to fetch the name of the tab (menu) from the database. for this case, i must use looping 'while'.
for example
<body>
<?php
$query=mysql_query("SELECT * FROM modul WHERE ket='submenu_mahasiswa'");
$result=mysql_fetch_array($query);
?>
<div id="tabs">
<?php while($result){ ?>
<ul>
<li><a href="#tabs-1">$result['nama_modul']</a></li>
</ul>
<?php } ?>
<div id="tabs-1">Content 1 Here! (I can put anything here, form etc..)
The problem --> id of each tab must be different based on the menu link(<a href="#tabs-1">). how can i make that since i use looping and fetching data from database???
Hope i make my question clear..thank you :)