Syntax error on closing brace after opening a php tag

bethereforlove

New Member
i'm getting trouble with a function that looks pretty much like this:\[code\]<?php function my_function() { if(!empty($variable)) { //Do some stuff } else { ?>show a message<?php }}?>\[/code\]The problem is i'm getting a parse error:Parse error: syntax error, unexpected
 
Back
Top