You just got the paranthesis wrong. The and-operator can be written both as '&&' and 'and' (at least I think so, but most people use &&).
PHP Code:
if ($t1 == $t1 && $t2 == $t2) { // do something }
Although in your case, you are comparing a variable with itself, $t1 with $t1 and $t2 with $t2, so it will always be true.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|