localhost
22-08-2003, 21:37
Wie könnte man das so machen das wen man auf´s off kligt on da steht ??
Und genauso anderum.
<?
include("mysql.inc.php");
echo "
<table width=700 border=1>
";
$abfrage = "SELECT * FROM status ORDER BY id ASC LIMIT 10";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
nl2br($code);
echo "
<tr>
<td width=350>";
echo $row->rowusername;
echo $row->id;
echo "
</td>
<td width=350>
";
if
( $status = on )
{
echo "<a href=site.php?status=off>off</a>";
}
else
{
echo "<a href=site.php>on</a>";
}
echo "
</td>
</tr>";
}
;
?>
Und genauso anderum.
<?
include("mysql.inc.php");
echo "
<table width=700 border=1>
";
$abfrage = "SELECT * FROM status ORDER BY id ASC LIMIT 10";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
nl2br($code);
echo "
<tr>
<td width=350>";
echo $row->rowusername;
echo $row->id;
echo "
</td>
<td width=350>
";
if
( $status = on )
{
echo "<a href=site.php?status=off>off</a>";
}
else
{
echo "<a href=site.php>on</a>";
}
echo "
</td>
</tr>";
}
;
?>