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";
    echo "condition is false";

best regards
Stefan Rusterholz

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to