// Connects to the db
include("../php/config.php");
// Includes related functions
include("../php/util.php");
$connect=my_connect($host,$dbid,$dbpass,$dbname);
include("../php/account.php");
include("../php/update_history.php");
?>
Matchinfo
// Includes the top menu
include("../include/top_menu.php");
?>
// Includes the left menu on the left
include("../include/left_menu.php");
?>
$fst_qry = "SELECT * FROM m_helpinfo WHERE parentname='' ORDER BY catename";
$fst_res = mysqli_query($fst_qry ,$connect);
for($i=0; $fst_row=mysqli_fetch_array($fst_res); $i++){
$catenum=$fst_row[catenum];
$catename=stripslashes($fst_row[catename]);
?>
$snd_qry = "SELECT * FROM m_helpinfo WHERE parentname!='' AND catedep=2 AND catenum BETWEEN ($catenum + 1) AND ($catenum + 999999) ORDER BY catename";
$snd_res = mysqli_query($snd_qry,$connect);
for($j=0; $snd_row=mysqli_fetch_array($snd_res); $j++){
$catenum1=$snd_row[catenum];
$catename1=stripslashes($snd_row[catename]);
echo "
";
echo "•$catename1 ";
$trd_qry = "SELECT * FROM m_helpinfo WHERE parent='$catenum1' AND catedep=3 ORDER BY catename";
$trd_res = mysqli_query($trd_qry ,$connect);
$num_row=mysqli_num_rows($trd_res);
if($num_row) {
for($l=0; $trd_row=mysqli_fetch_array($trd_res); $l++) {
echo "- $trd_row[catename] ";
}
}
echo "