Får något konstigt fel..
och felet verkar ligga här:
$id = mysql_real_escape_string($_GET['id']);
//$id = $_GET["id"];
$query_rec = "SELECT * FROM rec WHERE ID = $id";
$rec = mysql_query($query_rec) or die(mysql_error());
$totalRows_rec = mysql_num_rows($rec);
$row_rec = mysql_fetch_assoc($rec);
ID skickas med rätt, så mycket vet jag.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 är felet som kommer..