if($user_id['theame']){
require_once "../tema1/head.php"
}
else
{
require_once "../tema2/head.php"
}Таблицы и как это организовать, думаю понятно)
if($user_id['theame']){
require_once "../tema1/head.php"
}
else
{
require_once "../tema2/head.php"
}