I'm a bit confused about what you're trying to do?
The query has already been run and finished by the time you get down to the end, so there's no results for it to return...
PHP Code:
<form action="visgruppemedroller.php" method="get">
<input type="hidden" name="gruppeid" value="<?=$rad['id']?>">
<select name="velggruppe">
<?
$sql = "SELECT id, navn, parentid FROM grupper WHERE id > 0";
$result = mysql_query($sql) or die (mysql_error());
while ($rad3 = mysql_fetch_array($result))
{
echo "<option>$rad3['navn']</option>";
}
?>
<input type="submit" name="submit" value="Vis">
</form>
Is how I would do clean up the first part anyway 
But, what exactly do you want displayed near the bottom?
PHP Code:
$rad = mysql_fetch_array($result);
echo "<p>$rad['navn']<br>";
echo "$rad['parentid']</p>";
will echo out the last result, which is nothing 
Where does the rad[] array come from? is that something you do earlier?
Bookmarks