Unexpected T_IF
-
Hiya. I’m using this to get my last comments. I’m trying to add a bit of code so there will only be a “…” after the comment body if the comment isn’t shown in its entirety. This is what I’m using:
". if ($comment->com_excerpt >85) { echo "..."; } else { echo ""; } ."
which returns “unexpected T_IF”. I’m no PHP expert, just learning all this stuff, but I assume this means it doesn’t like the if? Any ideas how to make this work?
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Unexpected T_IF’ is closed to new replies.