How to show user messages
<p>Any suggestions to show user messages, Something to avoid a lot of if/else statements.</p>

<pre><code>if($row-&gt;num_rows &gt; 1) {
  ok
 } else { 
print "There is no...";
}
</code></pre>

<p>thanks!</p>
