I have a PHP file with a line that produces a warning in the NetBeans. How can I force the IDE to ignore that concrete warning? Notice that I don\'t want to disable
Maybe there is a way to suppress that warning in Netbeans, I don't know.
However, you could also just heed the warning and change your code - it won't do it any harm. The issue Netbeans complains about isn't anything terrible, but it is good style to separate query and condition like so:
$query = db_query("SELECT column FROM {table} WHERE type='some_value'");
if ($query)
{ ... }
else
{ // die and report error }