echo php values in table – strange behaviour, not all values are shown

You have an error here echo '<td>' . $tab4_arr->username; .'</td>';

Remove the ;