Re: CONTINUE - variable problem - help!

From: Date: Wed, 16 Jan 2002 13:09:04 +0000
Subject: Re: CONTINUE - variable problem - help!
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-80690@lists.php.net to get a copy of this message
whoops, typo: echo (isset($row["somename_$var"]) && $row["somename_$var"] !== "") ? $row["somename_$var"] : "Sorry, but \$row[\"somename_$var\"] is not set."; above code should be correct :) (notice: it's only 1 line - email could display it on multiple lines). and here a smaller explanation of the ternary operator (?:): echo (condition) ? "condition is true" : "condition is false"; if conditions evaluates to true then PHP interprets it like echo "condition is true"; else echo "condition is false"; best regards Stefan Rusterholz

« previous php.general (#80690) next »