I've got a fairly standard while mysql_fetch_array statement in php, and I'm trying to figure out which row in the result set is being printed.
I figured this should be pretty simple, but I've put a fairly standard
$i=0;
$count=mysql_num_rows($getResults);
while($resultArray=mysql_fetch_array($getResults)){
$i++
if($i==$count){
echo "this is the last row";
}
}
but strangely, that isn't working. is there another way to find the last row?