alert for new update in php or javascript
<p>How to change background color for  last render row in while loop ....</p>

<p>that is </p>

<pre><code>row1
row2
**row3**
</code></pre>

<p>If row4 is added then it should </p>

<pre><code>row1
row2
row3
**row4**
</code></pre>

<p>that is star represents some bgcolor red...</p>

<p>this loop am following,,,,
    $i = 1;
    while ($row = mysql_fetch_assoc($sql)) {</p>

<pre><code>$out_data[] = "&lt;p&gt;$i {$row['news']} &lt;/p&gt;";

$i++;
}

$divider = '&lt;div class="border"&gt;&lt;/div&gt;';
$output = implode ($divider, $out_data);

echo $output;
</code></pre>
