Forum Moderators: coopster
print "Ratings:</b> ".$total9."<br> <?php if (".$total9."==0 ¦¦ ".$total9."==NULL) {".$nada."=0;} else {print \"<form method='post' action='https://www.sample.com'><input type='hidden' name='bemail' value='".$webinfo2."'><input type='image' src='images/viewratings.jpg' value='submit' alt='[View Ratings]' width='100'></form>\";} ?> <br>"; Thanks,
Matt
If you require an if type statement in a string, look into ternary operators.
[uk.php.net...]
dc