title: Use Rowspan if values are same
body: <p>I have a table in mySQL which stores center name and activities there. I want to display activities in a table center wise. I am using below query to fetch data:</p>
  
  <pre><code>$query2 = "SELECT * FROM centres_info_act a, cenert_name b Where a.cnt_id = b.ctn_id";
  </code></pre>
  
  <p>These 2 tables are connected by common column  cnt_id  and ctn_id. The master table is cenert_name in which center name and center address are stored.</p>
  
  <p>Now, when i display it in HTML table then each record is printed in different rows having same center name . For e.g.</p>
  
  <pre><code>Example Center         Activity 1         Delete
  Example Center         Activity 2         Delete
  Example Center         Activity 3         Delete
  </code></pre>
  
  <p>But i want output like below:</p>
  
  <pre><code>                       Activity 1         Delete
  Example Center         Activity 2         Delete
                         Activity 3         Delete
  </code></pre>