I’m trying to build a string of HTML as follows:
$html= "<input name='".GROUP_CONFIG_MAX_CALL_RECORDING_TIME_INPUT."' value='".$MaxCallRecordingTimeSecs."' size='4' ".($bCallRecordingLicensed)?'':'disabled'.">";
But it just gives me a parse error (no specific detail, just that this line is the problem).
I’ve tried various positioning of quotations and brackets but I’m always getting the parse error. Is this possible the way I’m trying?
Like codingbiz said, this should work with additional parentheses. I’d go for a more readable version with sprintf though: