There is a book/CD by 'Stroup' called 'More effective c++'. VERY excellent book. It give someting like 54 specific technicques to employ that save LOTS of time for a C++programmer.
One of the ones from that book, applies here:
DON'T write if ( variable ==/= constant){;}
INSTEAD write if(
Harlequin wrote:
if ($_SESSION[Authorised]=Yes);
You know this will _always_ be true, don't you?
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To
* Thus wrote Harlequin:
if ($_SESSION[Authorised]=Yes);
{
// Body ~ Verified User:
echo brbrbr;
echo pThank you $UserCName, Now please just provide the following
information
and your aProfile will be loaded.;
}
else - The offending line...!
{
echo You need to go back and
Hi,
You have two problems in these line:
Harlequin said:
if ($_SESSION[Authorised]=Yes);
1. The obvious ; at the end of the line.
2. $_SESSION[Authorised]=Yes it's different to write:
$_SESSION[Authorised]==Yes
Cheers,
--
Rodrigo Castro Hernandez
--
PHP General Mailing List
1. The obvious ; at the end of the line.
2. $_SESSION[Authorised]=Yes it's different to write:
$_SESSION[Authorised]==Yes
Gotta love c style languages where variable assignment is like variable
comparison.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
* Thus wrote Rodrigo Castro Hernandez:
Hi,
You have two problems in these line:
Harlequin said:
if ($_SESSION[Authorised]=Yes);
1. The obvious ; at the end of the line.
2. $_SESSION[Authorised]=Yes it's different to write:
$_SESSION[Authorised]==Yes
nice catch.
Curt
6 matches
Mail list logo