username; $_SESSION['password'] = $hasil->password; $_SESSION['level'] = $hasil->level; session_start(); if ($hasil->level=="Admin" ) { $_SESSION['username'] = $hasil->username; $_SESSION['password'] = $hasil->password; ?> level=="Karyawan") { $_SESSION['username'] = $hasil->username; $_SESSION['password'] = $hasil->password; ?>