xkill
Mitglied
Hi an alle,
ich hab hier ein kleines Problem:
und zwar wird in cup_center bei der Session unter user_name alles korrekt angezeigt, jedoch bei cup_teamprofil ist die Session wie leer...
index.php?section=cup_center :
index.php?section=cup_teamprofil :
ich hab hier ein kleines Problem:
und zwar wird in cup_center bei der Session unter user_name alles korrekt angezeigt, jedoch bei cup_teamprofil ist die Session wie leer...
index.php?section=cup_center :
Code:
<?php
$sessionid=$_GET['sessionid'];
if (isset($_GET['sessionid']))
{
session_id($sessionid);
}
session_start();
?>
<br>
TeamId: <?php echo $_SESSION['user_id']; ?><br>
Teamname: <?php echo $_SESSION['user_name']; ?><br><br>
<?php echo "<a href=\"index.php?section=cup_teamprofil&sessionid=$sessionid\">Teamprofil</a>";?> <br>
<a href="index.php?show=logout.inc">Ausloggen</a>
</body>
</html>
<?php
}
else
{
echo "Error!";
}
?>
index.php?section=cup_teamprofil :
Code:
<?php
$sessionid=$_GET['sessionid'];
if (isset($_GET['sessionid']))
{
session_id($sessionid);
}
session_start();
$id=$_SESSION['user_id'];
mysql_query($db);
$sql = "SELECT * FROM $cup_teams where id=$id";
$result = mysql_query($sql) OR die(mysql_error());