", $query); $result=mysql_query($query, $db_id); $sequences=""; while ($row = mysql_fetch_row($result)) $sequences.= $row[0] . " "; mysql_free_result($result); mysql_close($db_id); $text=""; if (!empty($sequences)) $text.= str_replace(" ", "+", trim($sequences)); return $text; } function PrintDiv($host, $user, $pw, $db, $column, $tables, $num) { $list=GetList($host, $user, $pw, $db, $column, $tables); if (($_GET["prim"]==$column && empty($num)) || ($_GET["prim"]==$column && $num==3) || ($_GET["prim"]==$column && $num==4) || ($_GET["prim"]==$column && $_GET["plot"]=="val" && $num==2) || (empty($_GET["prim"]) && $column=="fSequenceFirst")) printf("
\n"); printf(""); printf(" | \n"); // printf("\n"); printf(" | \n");
if (!empty($_GET))
{
$img="plot.php?par=hallo";
foreach($_GET as $var => $val)
{
if ($var=="Set2" && $_GET["set"]=="datasets")
continue;
if ($var=="Set" && $_GET["set"]=="datasets" && !empty($val))
{
$img.= "&Set=" . GetSequencesFromDataSet("1");
$img.= "&Set2=" . GetSequencesFromDataSet("2");
continue;
}
$img.="&".$var ."=".$val;
}
// printf("link: %s ", $img); printf("", $img); } printf(" |
\n");
printf(" some remarks:\n
| \n||
\n");
$query=GetQuery($tables, $joins, "");
printf("Q: %s ", $query); if (!empty($_GET["Set"])) { $query=GetQuery($tables, $joins, "Set"); printf("Q: %s ", $query); } if (!empty($_GET["Set2"])) { $query=GetQuery($tables, $joins, "Set2"); printf("Q: %s ", $query); } printf(" |