Posted by Ian B on 11/24/05 19:13
I'd do a single line "if" as if (!isset($_SESSION['countAccess'])) $_SESSION['countAccess'] = 0; but if I had an else, i'd probably use braces, but I'd lay it out: if (!isset($_SESSION['countAccess'])) { $_SESSION['countAccess'] = 0; } else { $_SESSION['countAccess']++; }
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming