"; return; } 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); $query0="SELECT fKey from ProgramOption "; if ($_GET["fProgram"]!="all") $query0.="WHERE fProgram='".$_GET["fProgram"]."' "; $query0.="GROUP BY fKey"; $result0=mysql_query($query0, $db_id); printf("Please select a key:\n"); printf("\n\n"); mysql_free_result($result0); mysql_close($db_id); ini_set("display_errors", "Off"); ini_set("mysql.trace_mode", "Off"); } ?>