Jump to content

[SOLVED] Variables don't work ...


mzonas

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.