Hi,
How can I do a IF statement with an array - $row[test] to see if it contains any data?
Doing some code like this:
IF ($row[test] <= 0)
echo "no data";
else
echo ".$row[test].";
doesn't work. And I have tried other php functions like:
array_count_values, array_values, and count. I can't seem to be able to figure this out.
Any Ideas?
Thanks!
How can I do a IF statement with an array - $row[test] to see if it contains any data?
Doing some code like this:
IF ($row[test] <= 0)
echo "no data";
else
echo ".$row[test].";
doesn't work. And I have tried other php functions like:
array_count_values, array_values, and count. I can't seem to be able to figure this out.
Any Ideas?
Thanks!