watthehell Posted September 7, 2007 Share Posted September 7, 2007 hi all, <td style="width:3px">'.<?php $_SESSION['mydate'=$i; ?>.'</td> this td is wrapped inside echo ' '; when i write this i get this error; Parse error: syntax error, unexpected '<' in c:\wamp\www\myfile\calendar.php on line 323 Quote Link to comment https://forums.phpfreaks.com/topic/68327-please-help-in-this-errorconcatenation/ Share on other sites More sharing options...
vijayfreaks Posted September 7, 2007 Share Posted September 7, 2007 Hi.. change to following... <td style="width:3px">'.<?php $_SESSION['mydate'.$i; ?>.'</td> -Vijay Quote Link to comment https://forums.phpfreaks.com/topic/68327-please-help-in-this-errorconcatenation/#findComment-343570 Share on other sites More sharing options...
watthehell Posted September 7, 2007 Author Share Posted September 7, 2007 this does not work, i tried this also it gives parse error Parse error: syntax error, unexpected '<' in c:\wamp\www\mysite\calendar.php on line 323 Quote Link to comment https://forums.phpfreaks.com/topic/68327-please-help-in-this-errorconcatenation/#findComment-343572 Share on other sites More sharing options...
xyn Posted September 7, 2007 Share Posted September 7, 2007 Problem is this '.<?php $_SESSION['mydate'=$i; ?>.' being inside an echo you cannot use <? or ?> Also what are you trying to do with your SESSION var? 1. $_SESSION['mydate'=$i; <- '] 2. whats with $i what does it do? 3. could you expand on what your trying to accomplish and display more coding. Quote Link to comment https://forums.phpfreaks.com/topic/68327-please-help-in-this-errorconcatenation/#findComment-343575 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.