counteract
Erfahrenes Mitglied
Was meinst du damit genau?
So?
So?
PHP:
if(!isset($_GET['id']))
{
$sql = mysql_query("SELECT user_id, pname FROM projekt_geb WHERE user_id = '".$_SESSION['session_user_id']."'");
$result = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($result)) {
echo '<pre>';
echo '<a href="./aktuelle_projekte.php?id='.$row['Id'].'">'.$row['pname'].'</a>';
echo '</pre>';
}
} else {
$sql = mysql_query("SELECT pname FROM projekt_geb WHERE Id = '".intval($_GET['id'])."' AND user_id = '".$_SESSION['session_user_id']."' LIMIT 1");
$row = mysql_fetch_array($sql);
}
?>