Probeer zoiets als dit:
<?php
$userType = $row['user_type'];
if($userType == 'admin'){
header("Location: /administration/admin.php"); // This line triggers a redirect if the user_type is admin
} else {
header("Location: /application/app.php"); // This line triggers for other user_types
}
?>
$row['user_type'];
simuleert uw SELECT
uit uw database, zal ik het verbindingsscript niet voor u schrijven, maar dit is slechts een richtlijn voor waar u naar moet kijken. Kijk ook naar PDO of MySQLi aangezien MySQL is verouderd.