When someone logs in, it redirects them to the menu page where it also gives them a little info about the person.
Now here is where the problem is, when they log in and it redirects you to the page, neither top where it shwos the player's stats or the menu tells them how much of "whatever" they have. It says they have 0. But once you refersh it tells them an exact ammount of what they have.
I'm going to show you some of my code but if anyone needs anymore to figure out what the problem would be please tell me.
$result = mysql_query("SELECT * FROM users WHERE username='" . decrypt($_SESSION['login']) . "'"); $rs = mysql_fetch_array($result);
Part of index where info is displayed:
echo'<td width="15%">Money: <b>$' . number_format($rs['moneyout']) . '</b></td>'; echo'<td width="15%">Power: <b>' . number_format($rs['power']) . '</b></td>'; echo'<td width="15%">Attacks: <b>' . number_format($rs['attacks']) . '</b></td>';
I apprecate your help, thank you.