fr600 wrote:I have read that now but I find it difficult to understand. Is there any easyier way to write those 2 queries?
You should think of the ? as the words "then do" and the : as "else".
So basically, you have:
<?php
echo([b]([/b]If Statement[b])[/b] [b]?[/b] "then do statement" [b] : [/b] "else statement");
?>
If the "IF Statement" is true, we do the "Then do statement", else, we do the "else statement".