Hi all:
I have a simple checking mechanism:
$num = mysql_num_rows($result);
if($num == 0) {
$display_news = "<p>Sorry, no news items.</p>";
}
else {
while(this, that and the other) {
}
}
What's the difference between:
if($num == 0) {
$display_news = "<p>Sorry, no news items.</p>";
}
//and:
if($num != 1) {
$display_news = "<p>Sorry, no news items.</p>";
}
As I seem to remember the former working fine...now I have to switch to
the latter???
Cheers.
Russ
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
e: [EMAIL PROTECTED]
w: www.apu.ac.uk/webteam
t: +44 (0)1223 363271 x 2331
www.theruss.com
#-------------------------------------------------------#
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]