well how I like to code is have whichever way will have the MAIN stuff at the top and the error trapping below.
IE: (Only wanting prodigy2k7 to visit)
if ($name == prodigy2k7) {
do this;
also this;
and this;
and this;
more of this;
and this;
}
else {
echo "You are not allowed."
}
OR (Wanting anyone EXCEPT prodigy2k7 to visit)
if ($name != prodigy2k7) {
do this;
also this;
and this;
and this;
more of this;
and this;
}
else {
echo "You are not allowed."
}
See what I mean? It really depends on what your doing.
I like to have most of the code at the top, so therefore I do whatever is necesarry at the top using == or != so it really depends on the person and what your doing.
No there is no difference. It is a language that you are coding for yourself. Look at Shakespeare, he writes how he wants to. You can code how you want to, how you best understand it.
Enjoy
