title: MYSQL union display
body: <p>I'm using a query to search in two tables (tracks and artist):</p>
  
  <pre><code>SELECT trackID, title
  FROM tracks WHERE title LIKE '%$s%'
  LIMIT 5
  UNION
  SELECT artistID, name
  FROM artists WHERE name LIKE '%$s%'
  LIMIT 5";
  </code></pre>
  
  <p>I use <code>mysql_num_rows($result)</code> to display the result of this query, but I don't know how to display it properly.
   Because I want the output result be different when the row is from artists but keep the same order. </p>
  
  <p>I hope this is clear, Thanks in advance!!</p>