Why is $row empty when I apply the while loop with mysql_fetch_assoc with an extra condition, but when the extra condition is not there, returns something, is this logical?
while ($row = mysql_fetch_assoc($result)
&& $gen->getMailsSent() < 499) {
//blah blah
}
In the above code, the compiler enteres the loop, but $row is empty
while ($row = mysql_fetch_assoc($result)) {
//blah blah
}
In this one, the compiler still enteres the loop, but then $row returns something, this to me i dont get and is not logical, can someone please explain why this occurs?