Here's my code:
isset($row[3]) ? echo ("<comments>".$row[3]."</comments>\n") : echo ("<comments/>\n");
But if I use that instead of:
if(isset($row[3])) {
echo ("<comments>".$row[3]."</comments>\n");
}
else {
echo("<comments/>\n");
}
it breaks my script. Gives nothing at all; or if it does, I can't view the source (IE reports that the source XML is unavailable for viewing.)
Can anyone see what I'm doing wrong?
Thanks for the help!