title: PHP Check MySQL Last Row
body: <p>I have a simple question regarding PHP to check if this is the last row of MySQL or not. For example I have this code :</p>
  
  <pre><code>$result = mysql_query("SELECT *SOMETHING* ");
  
  while($row = mysql_fetch_array($result))
  {
  if (*this is the last row*)
  {/* Do Something Here*/}
  else
  {/* Do Another Thing Here*/}
  }
  </code></pre>
  
  <p>I have difficulties to check if the row is the last one or not. Any idea how to do it? Thanks.</p>