//echo TEXT_KNOWLEDGEBASE_RATENOW
    ?>
</a></b>)-->
                    <!--span class='rating_<?php 
    //echo $avgrating
    ?>
'></span-->
                    <br><br>
                    <?php 
}
?>

                <?php 
//echo strip_tags(htmlentities($description));
echo $description . '<br/><br/>';
$starRatingContent = getStarRatingContent($kbid);
?>
                <div id="jQRatingDiv"> <?php 
echo $starRatingContent;
?>
</div><br/><br/>
                <!---------------------------------------RATING POP UP------------------------------->
                <div id="jqRatingPop" class="jqRatingPop" style="display:none;">
                    <div style="width:280px;"><h1 style="font-size:14px; "><?php 
echo TEXT_KNOWLEDGEBASE_RATENOW;
?>
</h1></div>
                    <div id="jqLoader" style="display:none;"><img src="images/loading.gif" border="0" class="loader" alt="" /></div>
                    <div id="ratingArea">
                        <form name="frmRate" method="post" action="#" >
                            <table cellpadding="1" cellspacing="1" width="100%" border="0" class="ratingBox">
示例#2
0
    $result = executeSelect($sql, $conn);
    if (mysql_num_rows($result) > 0) {
        while ($row = mysql_fetch_array($result)) {
            echo $row['nKBID'] . "~" . $row['vKBTitle'] . "\n";
        }
    } else {
        //echo '0~'.MESSAGE_NO_RECORDS;
        echo '0~0';
        exit;
    }
}
// Search KB
if ($txtKbSearchid != '') {
    $my_data = mysql_real_escape_string($txtKbSearchid);
    $sql = "select nKBID,vKBTitle,tKBDesc from sptbl_kb where (nKBID = '{$my_data}') AND   vStatus ='A'";
    $result = executeSelect($sql, $conn);
    if (mysql_num_rows($result) > 0) {
        $row = mysql_fetch_array($result);
        $textdisp = "<b>" . TEXT_TITLE . " : " . $row['vKBTitle'] . "</b><br><br>";
        echo $textdisp .= $row['tKBDesc'] . "<br/><br/>";
        $starRatingContent = getStarRatingContent($txtKbSearchid);
        echo $starRatingContent . "<br/><br/>";
        include "./includes/releatedresults.php";
        getReleatedResults($row['vKBTitle'], $row['nKBID']);
        exit;
    }
}
exit;
?>