Re: [PHP] what do '?' and ':' do?

2004-05-17 Thread Matt Matijevich
[snip] what does the semicolon and the question mark do? [/snip] http://www.php.net/operators.comparison look at the ternary operator -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what do '?' and ':' do?

2004-05-17 Thread Travis Low
They confuse non-C programmers, mostly. See this: http://www.php.net/operators.comparison cheers, Travis Radek Zajkowski wrote: Here's a code snippet // call gui object method $method = $cmd.Object; $class_name = $objDefinition-getClassName($obj_type); $module =

RE: [PHP] what do '?' and ':' do?

2004-05-17 Thread Chris W. Parker
Radek Zajkowski mailto:[EMAIL PROTECTED] on Monday, May 17, 2004 12:38 PM said: $module_dir = ($module == ) ? : $module./; what does the semicolon and the question mark do? ?php if ($module == ) { $module_dir = ; } else { $module_dir = $module./; } ?

Re: [PHP] what do '?' and ':' do?

2004-05-17 Thread John W. Holmes
From: Radek Zajkowski [EMAIL PROTECTED] $module_dir = ($module == ) ? : $module./; what does the semicolon and the question mark do? Ternary Operator: http://us2.php.net/operators.comparison ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What do I do wrong?

2003-03-14 Thread Maciek Ruckgaber Bielecki
On Thu, Mar 13, 2003 at 05:56:40PM -0600, Tom Woody wrote: On Fri, 14 Mar 2003 00:37:38 +0100 Michael Cronstrom [EMAIL PROTECTED] wrote: I get the message: Notice: Undefined variable: msg in F:\www-root\domain.com\website\script.php on line 202 mate, this is not actually an error

Re: [PHP] What do I do wrong?

2003-03-13 Thread Tom Woody
On Fri, 14 Mar 2003 00:37:38 +0100 Michael Cronstrom [EMAIL PROTECTED] wrote: I get the message: Notice: Undefined variable: msg in F:\www-root\domain.com\website\script.php on line 202 whats wrong? Questions like this and you are asking for trouble... first off how are we supposed to

RE: [PHP] What do I do wrong?

2003-03-13 Thread John W. Holmes
Hey everybody, I get the message: Notice: Undefined variable: msg in F:\www-root\domain.com\website\script.php on line 202 whats wrong? I'm not very good at PHP, but I'd have to say the problem is that you've got an undefined variable called $msg on line 202 in script.php... but I

RE: [PHP] What do I do wrong?

2003-03-13 Thread Alex Piaz
At 20:39 13/3/2003 -0500, John W. Holmes wrote: I'm not very good at PHP, but I'd have to say the problem is that you've got an undefined variable called $msg on line 202 in script.php... but I could be wrong. LOL:-) Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe,