mysql_fetch_array while loop. How does it work?
问题 I have read about the function on php.net and that has still not answered my question. I know a beginners amount of C and I've just started using php. Normally in C if you were to do a while loop there needs to be some condition to advance the loop to a point where it will no longer be valid like so: while (x >= 10) { printf("..."; printf("x \n"; x++; } However in my php script that I'm using for a pm message system I have a while loop like this: while($row2 = mysql_fetch_array($query))