0

I have this code presently for null to say free but i need also if the info in the ProductPrice field is 0

echo is_null($row['ProductPrice']) ? "FREE" : $row['ProductPrice'];
	echo "</td><td>";

Please help

2
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by mpc123
0

The code segment seems correct. Are you tried with empty() instead of is_null()?

Edited by martin5211: n/a

0

it need to be if it is NULL or 0 (as in ZERO) please , please can you give full code.

Thanks again

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.