Can someone explain why do we need to do java: while rs.next()
, php: while ($result = mysql_fetch_array)
? How does programming languages retrieve data from database. What happens ? Why doesn't reveice the whole response ?
I don't know but I really can't understant this , is way to nasty .
I need a documentation not just "because they do that"
PS :
$result = mysql_query($query)
won't return the query results to the $result ? and then : while ($row = mysql_fetch_array($result)) { do stuff }
??
Thanks