Codestyle: Please put a space between the if and the condition. Like `if ($id2)`. Also put a new line before the conditional.