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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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> Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.