當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SqlParser::htmlPreparedStatement方法代碼示例

本文整理匯總了PHP中SqlParser::htmlPreparedStatement方法的典型用法代碼示例。如果您正苦於以下問題:PHP SqlParser::htmlPreparedStatement方法的具體用法?PHP SqlParser::htmlPreparedStatement怎麽用?PHP SqlParser::htmlPreparedStatement使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SqlParser的用法示例。


在下文中一共展示了SqlParser::htmlPreparedStatement方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: substr_replace

    }
    $sOrder = substr_replace($sOrder, "", -2);
    if ($sOrder == "ORDER BY") {
        $sOrder = "";
    }
    $query .= " {$sOrder} ";
}
if (isset($_GET['iDisplayStart']) && $_GET['iDisplayLength'] != '-1') {
    $query .= " LIMIT " . $_GET['iDisplayStart'] . ", " . $_GET['iDisplayLength'];
}
$list = Database::find('review')->query($query);
$rowCount = (int) Database::find('review')->query_col('SELECT FOUND_ROWS()');
$totalCount = (int) Database::find('review')->query_col('SELECT COUNT(review.checksum) FROM ' . Database::escapeField($reviewhost['review_table']) . ' AS review');
$data = array();
$data['query'] = $query;
$data['sEcho'] = intval(@$_GET['sEcho']);
$data['iTotalRecords'] = $totalCount;
$data['iTotalDisplayRecords'] = $rowCount;
$data['aaData'] = array();
//$data['query']                  = $query;
while ($row = $list->fetch_assoc()) {
    $row['fingerprint'] = SqlParser::htmlPreparedStatement($row['fingerprint'], true);
    $dr = array();
    foreach ($aColumns as $col) {
        $dr[] = $row[$col];
    }
    $dr[] = '<a class="details" href="review.php?checksum=' . $row['checksum'] . '"><img src="images/details_open.png"></a>';
    $data['aaData'][] = $dr;
}
header('Content-type: application/json');
echo json_encode($data);
開發者ID:qbdsoft,項目名稱:Query-Digest-UI,代碼行數:31,代碼來源:list-ajax.php

示例2:

require_once 'templates/header.php';
?>

<div class="tabs">
    <ul>
        <li><a href="#queryFingerprint">Fingerprint</a></li>
        <li><a href="#querySample">Example</a></li>
        <li><a href="#normalizedQuery">Normalized</a></li>
        <li><a href="pt-query-advisor.php?checksum=<?php 
echo $_REQUEST['checksum'];
?>
">Advisor</a></li>
        <li><a href="#queryReview">Review</a></li>
    </ul>
    <div id="queryFingerprint"><?php 
echo SqlParser::htmlPreparedStatement($reviewData['fingerprint']);
?>
</div>
    <div id="querySample">
		<div style="float: right">
			<button id="samplePrev"></button>
			<button id="sampleNext"></button>
		</div>
		<div id="querySampleContent"></div>
    </div>
    <div id="normalizedQuery">Please explain the query to view the normalized query.</div>
    <div id="queryReview">
        <form method="post">
            <label for="reviewed_by">Reviewed by </label> <input type="text" name="reviewed_by" value="<?php 
echo $reviewData['reviewed_by'];
?>
開發者ID:nettedfish,項目名稱:Query-Digest-UI,代碼行數:31,代碼來源:review.php


注:本文中的SqlParser::htmlPreparedStatement方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。