PHP-Code:
<select name="touser">
<option selected>Bitte User auswählen</option>
<?php
include("var.php");
$connect = @ mysql_connect($dbserver, $dbuser, $dbpass);
if (!$connect)
{
header("Location: index.php?i=sna.php");
exit;
}
$anzeige = mysql_query("SELECT username FROM
user ORDER BY username DESC");
while($row = mysql_fetch_array($anzeige))
{
$pmuserliste .= "<option>$row[username]</option>";
}
mysql_close($connect);
echo($pmuserliste);
?>
</select>
Kommentar