What error are you getting? You need to provide more information than that when you post. Most people don't have time to sit here and read through your code trying to figure out what you're trying to do, then what's actually wrong with it.
Give us as much info as possible, and we'll help 🙂
My first suggestion: change $Result = mysql_query($Query, $Link); to
$Result = mysql_query($Query, $Link) or die(mysql_error());