Brauch dringend Hilfe bei einem DB Problem

Moin, ich hab da ein kleines Problem…

ich mache eine Webseite für einen Fussball Club und habe da eine DB in der die Rangliste gespeichert wird. Bis jetzt funktioniert alles prima, ich kann die Einträge updaten, sie werden auch korrekt angezeigt und ich kann sie auch problemlos löschen. Sobald ich aber einen von den 10 Einträge bearbeiten will streikt irgendetwas. Egal auf welchen Eintrag ich klicke wird mir zwar die richtige ID (der richtige Pfad) in der Statusleiste als Hyperlink angezeigt, es wird aber auf der EDIT Seite immer nur der erste Eintrag (id1) aus der DB angezeigt.

(Der SQL Befehl sollte richtig sein)
SELECT * FROM rl WHERE id=’$id’

(Der Hyperlink glaube auch)
edit_tabelle.php?id=<?php echo $row_fks['id']; ?>

Habe es auch mit var_dump($id) versucht und da zeigt es mir NULL an, das bedeutet doch das die ID keinen Wert hat?
Wie kann ich der ID denn einen Wert zulegen?

Ich füge noch den PHP Code zu. Alles ist im Dreamweaver erstellt worden.

Wäre wirklich super wenn mir jemand helfen könnte.
Danke im Voraus

**<?php require_once('../../Connections/FKS.php'); ?>

<?php if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true";\ \ // *** Restrict Access To Page: Grant or deny access to this page function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { // For security, start by assuming the visitor is NOT authorized. $isValid = False;\ \ // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. // Therefore, we know that a user is NOT logged in if that Session variable is blank. if (!empty($UserName)) { // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. // Parse the strings into arrays. $arrUsers = Explode(",", $strUsers); $arrGroups = Explode(",", $strGroups); if (in_array($UserName, $arrUsers)) { $isValid = true; } // Or, you may restrict access to only certain users based on their username. if (in_array($UserGroup, $arrGroups)) { $isValid = true; } if (($strUsers == "") && true) { $isValid = true; } } return $isValid; }\ \ $MM_restrictGoTo = "../error_login.php"; if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) { $MM_qsChar = "?"; $MM_referrer = $_SERVER['PHP_SELF']; if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&"; if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) $MM_referrer .= "?" . $QUERY_STRING; $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer); header("Location: ". $MM_restrictGoTo); exit; } ?><?php

var_dump($id);
?>

<?php function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;\ \ switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; }\ \ $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); }\ \ if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) { $updateSQL = sprintf("UPDATE rl SET k=%s, s=%s, g=%s, u=%s, v=%s, t=%s, p=%s WHERE id=%s", GetSQLValueString($_POST['k'], "text"), GetSQLValueString($_POST['s'], "text"), GetSQLValueString($_POST['g'], "text"), GetSQLValueString($_POST['u'], "text"), GetSQLValueString($_POST['v'], "text"), GetSQLValueString($_POST['t'], "text"), GetSQLValueString($_POST['p'], "int"), GetSQLValueString($_POST['id'], "int"));\ \ mysql_select_db($database_FKS, $FKS); $Result1 = mysql_query($updateSQL, $FKS) or die(mysql_error());\ \ $updateGoTo = "master_tabelle.php"; if (isset($_SERVER['QUERY_STRING'])) { $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?"; $updateGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $updateGoTo)); }\ \ mysql_select_db($database_FKS, $FKS); $query_fks = "SELECT * FROM rl WHERE id ORDER BY rl.p DESC"; $fks = mysql_query($query_fks, $FKS) or die(mysql_error()); $row_fks = mysql_fetch_assoc($fks); $totalRows_fks = mysql_num_rows($fks); ?>\




\

<?php echo $row_fks['id']; ?>
K:
S:
G:
U:
V:
T:
P:

\ \ <?php mysql_free_result($fks); ?>**

Och nö, kannst du dein Posting bitte noch mal editieren und in Code Tags packen? Oben über dem Eingabefeld gibt es das #, jenes erzeugt die Tags. Dann kann man den Code auch besser lesen.