View Single Post
Old 07-08-2002, 04:30 PM   PM User | #1
Gil
New Coder

 
Join Date: Jul 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Gil is an unknown quantity at this point
Value=0 is not a value?

Hi there,

<?php

if ($b03 && $b04 && $b05 && $b07 && $b07 && $b09 && $b10)

{

?>

display this line

<?php
//endif
}?>

$b03 has a value of "0" - Why does php treat "0" as no value? No value would be if nothing is entered in this case. 0 is a possible value.

Can someone explain this to me? Also, if I'm coding things the wrong way here please tell me!

Thanks,

Gil
Gil is offline   Reply With Quote