Tim Streater <tim@xxxxxxxxxxxxxxxx> writes: > On 14 Aug 2011 at 14:23, Alekto Antarctica <alekto.antarctica@xxxxxxxxx> wrote: > >> *function loggedin()* >> *{* >> * if (isset($_SESSIONS['username']) || isset($_COOKIE['username']))* >> * {* >> * $loggedin = true;* >> * return $loggedin;* >> * }* >> *}* > > Why not just return true; > > And what happens if your "if" doesn't evaluate to true? What do you return then? > > >> *<?php* >> * >> * >> *if (loggedin==true)* >> *{* > > Should this be: > > if ($loggedin==true) ... > > -- > Cheers -- Tim Are you aware that your posts have some very strange and unique line endings? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php