if function placement
<p>If anyone could provide me with the proper code that would be great.  What I am trying to do is add an <code>&lt;hr /&gt;</code> after the information that is being echoed ONLY if more than one result is being pulled from my database.  Here is the code if anyone can help me.  Thanks.</p>

<pre><code>&lt;html&gt;
&lt;script&gt;
function goBack()
  {
  window.history.back()
  }
&lt;/script&gt;
&lt;body&gt;
&lt;div style="width: 875px; margin-left: 30px; margin-right: auto;"&gt;&lt;img         src="searchresults.png" alt="" title="Search Results"  alt="" /&gt;&lt;/p&gt;
&lt;?php


$term = $_POST['term'];

$sql = mysql_query("SELECT * FROM store_location where store_name like '%$term%' or     address like '%$term%' or city like '%$term%' or state like '%$term%' or zip like     '%$term%' or phone like '%$term%' or fax like '%$term%' or email like '%$term%' or url     like '%$term%' ");

    if( mysql_num_rows($sql) == 0) echo "&lt;p&gt;No TeachPro Store(s) in your area.&lt;/p&gt;";

   while ($row = mysql_fetch_array($sql)){

echo 'Store Name: '.$row['store_name'];
echo '&lt;br/&gt; Address: '.$row['address'];
echo '&lt;br/&gt; City: '.$row['city'];
echo '&lt;br/&gt; State: '.$row['state'];
echo '&lt;br/&gt; Zip: '.$row['zip'];
echo '&lt;br/&gt; Phone: '.$row['phone'];
echo '&lt;br/&gt; Fax: '.$row['fax'];
echo '&lt;br/&gt; Email: &lt;a href="mailto:'.$row['email'].'"&gt;'.$row['email'].'&lt;/a&gt;';
echo '&lt;br/&gt; URL: &lt;a href="'.$row['url'].'"&gt;'.$row['url'].'&lt;/a&gt;';
echo '&lt;br/&gt;&lt;br/&gt;';
}
?&gt;
&lt;/div&gt;
&lt;input type="button" value="Back" onclick="goBack()"&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
