Hi guys,

I have a query which returns 0 (zero) as a result not as a row in MySQL interface. However, when I run it in PHP the query doesn't return anything although there is one value which is 0. It is a Decimal type.

Neither of these work. Result is empty.

@mysql_num_rows($result) > 0
mysql_num_rows($result);

How can I handle this issue?

Thanks in advance

Solved with returning one more column along with the main one.

Post your query codes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.