How do i write this amount of code into a PHP if statement?
<p>How do i write an PHP <code>if</code> statement that says if this code </p>

<pre><code>$sql=mysql_query("select * from updates ORDER BY update_time DESC LIMIT 9");
while($row=mysql_fetch_array($sql))
{
$msg_id=$row['update_time'];
$message=$row['item_content'];
?&gt;

&lt;?php echo $message; ?&gt;

&lt;?php } ?&gt; 
</code></pre>

<p>has the same output as a variable, then do nothing. I'm only asking because i dont know how to put this amount of code into an <code>if</code> statement. If anyone knows please post, thanks :)</p>
