mzonas Posted September 3, 2007 Share Posted September 3, 2007 Hello. I have a problem. I can't get why my script doesn't work ... ??? Page 1 session_start(); $_SESSION['player']=$player; Page 2 print '<table class="maintable">'; print '<tr>'; print '<td class="headline">$player Stats</td>'; print '</tr>'; print '<tr>'; print '<td class="mainrow2">Nickname: <b>$player</b></td>'; print '</tr></table>'; Output: $player Stats Nickname: $player Why does it output $player instead of player's name ? What do I do wrong ? Link to comment https://forums.phpfreaks.com/topic/67706-solved-variables-dont-work/ Share on other sites More sharing options...
Timma Posted September 3, 2007 Share Posted September 3, 2007 print '<td class="mainrow2">Nickname: <b>'.$player.'</b></td>'; Do this! Link to comment https://forums.phpfreaks.com/topic/67706-solved-variables-dont-work/#findComment-340125 Share on other sites More sharing options...
mzonas Posted September 3, 2007 Author Share Posted September 3, 2007 This works. Thank you very much Link to comment https://forums.phpfreaks.com/topic/67706-solved-variables-dont-work/#findComment-340128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.