Hey!
Is there any way in php, to easily write this script shorter?
I am thinking possibly something like this:Code:if(isset($row["name"])) { $row_name = "-"; } else { $row_name = $row['name']; } echo "the name is $row_name;
So..Code:echo "the name is " . ?isset($row['name']) row['name'] | "-";
Always echo "the name is ", but ? (if) isset($row['name']) then echo row['name'] | (ELSE) echo "-";
Any ideas?
Cheers,
Artheus
... A little newbie question ...


Reply With Quote

Bookmarks