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 ;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)