> In my navigation.php include file, I had if ($page = about) echo href....
> I changed it to if ($page == about) echo.... and it suddenly worked! Imagine
> that...

Another good case for putting the variable on the right side of "==":

   if ("about" == $page)

Then if you mis-type "==" as "=", PHP will fail immediately with a parse error.

It feels a little weird but if it saves a lot of head-desk moments it's
probably worth it. Now if only I could get into the habit myself...

Ben


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to