watthehell Posted September 7, 2007 Share Posted September 7, 2007 Please help on this.. <?php echo'<td class='.$class_bg.'> <table width="25" border="0" cellspacing="1" cellpadding="0" align="center"> <tr> <td> </td> <td align="right" valign="top" class="'.$date_class.'"><a href="#" onMouseOver="doTooltip(event, msgTips)" onmouseout="hideTip();" class="'.$date_class.'">'.$i.'</a></td> <td style="width:3px">'.$_SESSION['mydate']=$i.'</td> </tr> <tr> <td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2" style="height:8px"></td> </tr> </table></td> </tr> </table> </td>';?> what i want is in this line <td style="width:3px">'.$_SESSION['mydate']=$i.'</td> it displays the value of $i , i need it to store in session not to display it. It is showing the value of $i twice $i is inside for loop and displays numbers from 1--30 help will be most welcome... Quote Link to comment https://forums.phpfreaks.com/topic/68330-solved-php-session-how-to-save-in-it/ Share on other sites More sharing options...
jitesh Posted September 7, 2007 Share Posted September 7, 2007 <?php echo "<td class=".$class_bg."> <table width=\"25\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\"> <tr> <td> </td> <td align=\"right\" valign=\"top\" class=".$date_class."><a href=\"#\" onMouseOver=\"doTooltip(event, msgTips)\" onmouseout=\"hideTip();\" class=".$date_class.">".$i."</a></td> <td style=\"width:3px\">"; $_SESSION['mydate']= $i; echo " </td> </tr> <tr> <td colspan=\"3\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td colspan=\"2\" style=\"height:8px\"></td> </tr> </table></td> </tr> </table> </td>";?> Quote Link to comment https://forums.phpfreaks.com/topic/68330-solved-php-session-how-to-save-in-it/#findComment-343571 Share on other sites More sharing options...
watthehell Posted September 7, 2007 Author Share Posted September 7, 2007 thnks it worked ;) ;) Quote Link to comment https://forums.phpfreaks.com/topic/68330-solved-php-session-how-to-save-in-it/#findComment-343574 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.