示例#1
0
function printClassPanelListInTags($tags_begin, $tags_end)
{
    $res = getTypesFromDB();
    if ($res->num_rows > 0) {
        while ($row = $res->fetch_assoc()) {
            echo $tags_begin . $row["name"] . $tags_end;
        }
    }
}
示例#2
0
function generateTypes()
{
    $result = getTypesFromDB();
    if ($result->num_rows > 0) {
        printBeginScriptTypes();
        // output data of each row
        while ($row = $result->fetch_assoc()) {
            printTypesData($row["id"], $row["parent_id"], $row["name"], $row["txt"], $row["img"]);
        }
        printEndScript();
    } else {
        echo "0 results";
    }
}