The sql statements you put in php are not interpreted by browsers. They are interpreted by the web server, and it sends the same data to any browser regardless of the browser type. If you had NN and IE get different results, something ELSE changed.
However, I notice in your code you have opening <TR> tags, but no closing </TR> tags. That's bad. Some NN versions, for example, will not display a page at ALL if there is an unmatched <TABLE> tag.
Anyhow, if you got different results from the
print($num_row);
line, then something else changed, but it wasn't a browser thing.