i have searched before asking here for help and there is so much to look through but its like looking for a needle in a haystack

i have a simple db setup and using php i can connect, get data from it perfectly but

i dont know the best way to get the data from the db.
i am using $HTTP_GET_VARS['id'] to get the ID from the address bar and then trying to use the number so that it will list the whole row of the ID in the db. i think its just the main loop i am not sure about and what mysql commands to use. is there a fast and easy way to do this (if anyone understands what i mean).
the code i have to connect to my db is what i have below (and works) and i have also built the db into my forum so i can do more with it.
Code:
$query = "SELECT Id, Name, Address FROM phpbb_private_data";
$result = mysql_query($query)
or die("Query Failed: " . mysql_error());
if anyone has any tips or useful links i'd be much appreciated
thanks