Create list with delete funtion - HELP!

GOING InSanE :stare:

I don’t know what’s wrong with this code??


<?php include("secure_it/dbconnect.php")?>
<form action="<?php echo $PHP_SELF; ?>" method="POST" name="del" id="del">
<? 
		$id=$_GET["id"];
		$name=$_GET["name"];
		$result = mysql_query("select * from tester order by id");
		$n = mysql_fetch_array($result);
?>
		<select name="name" size="7" multiple="multiple" class="textforForms2">
		<option value="<?php echo $n["name"]?>"><?php echo $n["name"]?>
		</select>
		<br/>
		<input name="cmd" type="submit" class="btn" value="remove" />
<?
		if($_POST["cmd"])
	{
		$sql = "DELETE FROM tester WHERE id=$id";
		$result = mysql_query($sql);
		echo "Tada... IT WORKED!";
	}
?>
</form>

It only displayed the first name… i need it to display ALL the names in that table…

ANYONE… PLEAS… HELP ME :worried: