Captain09 Posted August 25, 2012 Share Posted August 25, 2012 code: <?php $commence = round((time()-COMMENCE)/86400); $start1 = "Rundenstart vor " $commence ," Tagen"; ?> <span class="start"><?php if ($commence>=2) { echo $start1;} ?></span> error: Parse error: syntax error, unexpected T_VARIABLE in serverLogin.php on line 19 Link to comment https://forums.phpfreaks.com/topic/267561-echo-error/ Share on other sites More sharing options...
Christian F. Posted August 25, 2012 Share Posted August 25, 2012 Re-read that line, and you should see what's missing. Hint: Every little detail counts. Link to comment https://forums.phpfreaks.com/topic/267561-echo-error/#findComment-1372331 Share on other sites More sharing options...
Jessica Posted August 25, 2012 Share Posted August 25, 2012 You might also read these pages in the manual: http://php.net/manual/en/language.operators.string.php http://www.php.net/manual/en/language.types.string.php Link to comment https://forums.phpfreaks.com/topic/267561-echo-error/#findComment-1372339 Share on other sites More sharing options...
Captain09 Posted August 25, 2012 Author Share Posted August 25, 2012 now <?php $commence = round((time()-COMMENCE)/86400); $start1 = "Rundenstart vor ". $commence ." Tagen"; ?> <span class="start"><?php if ($commence>=2) { echo $start1;} ?></span> Link to comment https://forums.phpfreaks.com/topic/267561-echo-error/#findComment-1372343 Share on other sites More sharing options...
Jessica Posted August 25, 2012 Share Posted August 25, 2012 For simplicity you could just do $start1 = "Rundenstart vor $commence Tagen"; , check out the pages I linked to. Link to comment https://forums.phpfreaks.com/topic/267561-echo-error/#findComment-1372345 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.