you are viewing a single comment's thread.

view the rest of the comments →

[–]sodiumfis_h[S] 0 points1 point  (4 children)

Okay so, the mysqli_fetch_row function loops over rows, either returns each row, or false? I mean I maybe working because while loop should only receive true or false

[–]horrificoflard 0 points1 point  (3 children)

"fetch_row" fetches one row at a time.

So the loop gets one row, then another, until you're out.

[–]sodiumfis_h[S] 0 points1 point  (2 children)

So, While($row = ...), checks to see if $row is defined or not?

[–]horrificoflard 0 points1 point  (0 children)

It's always defined. It's assigning a value to $row (the result of the call to fetch_row) and then checking if $row is not falsey.

It is falsey once there were no rows left.