Add in between fetch rows
<p>I want to fetch 4 rows from my mysql and add diffrent text after each  row </p>

<pre><code>$rel=mysql_query("SELECT *  FROM b_topics WHERE MATCH (subject) AGAINST('$title') LIMIT 4");
if(mysql_num_rows($rel)&lt;0) { 
  echo ""
} 
else {
  echo" &lt;br&gt;&lt;strong&gt;&lt;div align='center'&gt;Related Topics&lt;/div &lt;br&gt;";
  while($rel2=mysql_fetch_assoc($rel)) {
     $gnum=mysql_num_rows($rel2);
     if($gnum==1) {
       echo" yes"
     }
     if($gnum==2) {
        echo" no yes"
     }
     if($gnum==3) {
        echo"yes yes"
     }
     if($gnum==4) {
       echo" wmjayes";
     }
     $reltitle=$rel2["subject"];
     $relid=$rel2["id"];
     echo" &lt;a href='showtopic.php?id= $relid'&gt;$reltitle&gt;$gnum&lt;/a&gt;&lt;br&gt;";
   }
}
</code></pre>