Page 1 of 1

empty sql query php 6

Posted: Wed Mar 17, 2010 12:56 pm
by yebaws
if (empty($id)) {echo "No result"

used to work fine. But no longer with php6 as "results with no value are not empty"

What alternative could I use?

Thanks...

Re: empty sql query php 6

Posted: Wed Mar 17, 2010 1:41 pm
by flying_circus
check the num_rows of the result set?