while ($dat = dbarray($result)) { echo "".$dat['user_name'].""; if ($i > 0) {