<?
$db = Mysql_pconnect("localhost","") or die ("gick ej");
mysql_select_db("Elite");
$burkar = mysql_query("SELECT id FROM DataRegister");
if ($_POST['tryck']) {
echo "<!-- ".$burkar." -->";
$query = "SELECT * FROM DataRegister WHERE id='$burkar'";
$result = mysql_query($query) or die ("frƄgan gick ej");
}
?>
<html>
<head>
<title>Elite</title>
</head>
<body bgcolor="#000066" text="#FFFF33">
<Table>
<tr><td valign=top><b>ID</b></td><td><form method=post action='nytt.php'><select name='burkar'>
<?
$antal = mysql_num_rows($burkar);
while ($i<$antal) {
$i++;
if ($i == "1")
print ("<option value='$i' selected>Dator ID $i</option>\n");
else
print ("<option value='$i'>Dator ID $i</option>\n");
}
?>
</select> <input type=submit name='tryck' value='Go!'></form></td></tr>
<?
while ($row = mysql_fetch_array($result)){
now the inpute type works but i dont get any info from the database