You'll want to have $rows = array();
appear before your while
loop. What you're doing is essentially destroying the array and redeclaring it as an empty array on each pass. This is why only the last row is appearing for you.
↧
Answer by anschauung for drupal table with the edit link
↧