Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_connect("localhost", "root", "") or die("Connection Failed");
- mysql_select_db("horse")or die("Connection Failed");
- $query1 = "select * from horse where active = 1";
- $result1 = mysql_query($query1);
- //while ($line1 = mysql_fetch_array($result1, MYSQL_ASSOC)) {
- echo ' <div class="tabs box">
- <ul>
- ';
- $count = 0; // Initialize counter
- while($row = mysql_fetch_array($result1, MYSQL_ASSOC)) {
- echo '<li><a href=\"#tab0"'. ++$count .'><span>'. $row['Name'] . '</span></a></li>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement