session_start(); if(!$_SESSION[pass]) $pass = ""; else $pass = $_SESSION[pass]; $GLOBALS[PAGETITLE] = "Help"; include "include/header.php"; $helppage = $_GET[page]; if(strlen($helppage) <= 0) $helppage = 1; ///// search for help page $dbcon = @pg_connect("host=localhost port=5432 dbname=ecoli user=chong password=nothing") or die("database failed"); $rs = @pg_query("SELECT * FROM website_schema WHERE id = '$helppage'"); if(!$rs || pg_num_rows($rs) <= 0) echo "help not found"; else { $result = pg_fetch_row($rs); @pg_free_result($rs); echo "
";
$parent = explode(", ", $result[2]);
foreach($parent as $link) echo "$links[$link] "; echo " | ";
echo "".$links[$result[4]]." | "; echo "";
$child = explode(", ", $result[3]);
foreach($child as $link) echo "$links[$link] "; echo " | ";
echo "