";
return;
}
if (empty($_GET["fKey"]))
$_GET["fKey"]="";
if (empty($_GET["fMode"]))
$_GET["fMode"]="view";
include("db.php");
$db_id = mysql_pconnect($host, $user, $pw);
if ($db_id==FALSE)
{
printf("mysql_connect returned the following error: %s\n", mysql_error());
die("");
}
mysql_select_db($db);
$query1 = "SELECT Max(fCounter) FROM History";
$result1=mysql_query($query1, $db_id);
$row1 = mysql_fetch_row($result1);
$maxcounter=$row1[0];
mysql_free_result($result1);
$query0="SELECT Concat(fKey1, fKey2) as ourkeys from ProgramOption ";
$query0.="WHERE fCounter=".$maxcounter." ";
if ($_GET["fProgram"]!="all")
$query0.="AND fProgram='".$_GET["fProgram"]."' ";
$query0.="GROUP BY ourkeys";
$result0=mysql_query($query0, $db_id);
if (strcmp($_GET["fMode"], "edit")==0)
printf("select key:
\n");
// else
// printf("select key: \n");
if (strcmp($_GET["fMode"], "view")==0)//reload tables in case of mode 'view'
printf("