Sheila Fenelon wrote:
Try it this way:

if (isset($_SESSION["userId"])) {
   $showMessage = "welcome";
} else {
   $showMessage = '';
}

The short-hand would be

isset($_SESSION["userId"]) ?  $showMessage="welcome" : $showMessage='';

I'd prefer to see it the other way:

$showMessage = (isset($_SESSION['userId']))? 'welcome' : '';

... but it's pretty much the same thing expressed differently :)


Am I being a tool?


Hmmm "being a tool", is that British slang? What's it mean?

Um, "a tool" is a reference to a certain part of a man's anatomy... :)

Cheers

Dave P

____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to