Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9075159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:48:25+00:00 2026-06-16T18:48:25+00:00

My table code. it’s included the popover button, that I want to show other

  • 0

My table code. it’s included the popover button, that I want to show other detail than Name and Country.

  while ($data = mysql_fetch_array($result)) 
           {
           echo "<tr>";
           $Name = $data['Name'];
           $Address = $data['Address']; 
           $Tel = $data['Tel'];
           $Email = $data['Email'];
           $Country = $data['Country'];
           $ManufacturerKey = $data['ManufacturerKey'];
           echo "<td>{$Name}</td><td>{$Country}</td>";
           echo '<td><a href="#" id="detail" class="btn btn-danger" rel="popover" data-content="Test" data-original-title="detail">detail</a></td>';
           echo "</tr>"; 
           }
           echo "</table></center>";
           }

and Javascript:

<script>  
    $(function ()  
    { $("#detail").popover({placement:'left'});  
    });  
</script>

my problem is it’s confuse about the id.In the each table row it has same id like “detail”.How can I fix that ??
Thanks for all answer.Tell me if you want more code thanks so much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:48:26+00:00Added an answer on June 16, 2026 at 6:48 pm

    Every tag must have an unique id, this html isn’t correct.

    You have to use a class selector.

         //add detail in your class
    echo '<td><a href="#" id="detail" class="btn btn-danger detail" rel="popover" data-content="Test" data-original-title="detail">detail</a></td>';
    

    Edit :
    Don’t forget to change the id. For example, you can do id="detail'.$data['id'].'" if you have an id.

    In your JS (jQuery as he uses bootstrap):

    //use class selector instead of id selector
    $(function ()  {
            $(".detail").popover({placement:'left'});  
        }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this piece of code: @Entity @Table(name = MOVERS) public class MOVers implements
Consider the following code: @Entity @Table(name = a) public class A implements Serializable {
I have the following table code that each row contains a form. My problem
Please check below table Code Name ----------- 001 A 001 B My query is
I have a table code_prices that looks something like this: CODE | DATE |
I have the next table: code, year, day I want to find the code
I have a class that returns all items in a database table (Code below).
I want to make Latex table code from Unix cal output, e.g. It should
I want to recreate this using CSS only instead of a table code will
i have a table with code like this: <tr> <th scope=row>5-17</th> <td>23.6 (22.0-24.0)</td> <td>18.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.