title: if statement in the middle of concatenation?
body: <p>Does this not work? or am I just doing it wrong? Tried multiple variations of it, and can't seem to find any solid info on the subject. any ideas?</p>
  
  <pre><code>    $given_id = 1;
  while ($row = mysql_fetch_array($sql))
  {
      if ($i &lt; 10){
      $display = '&lt;a href="' . $row['info'] . '" onMouseOver="' . if($row['type']=="battle"){ . 'showB' . } else { . 'showA'() . "&gt;&lt;div class="' . $row['type'] . "_alert" . '" style="float:left; margin-left:-22px;" id="' . $given_id . '"&gt;&lt;/div&gt;&lt;/a&gt;';
  </code></pre>