本文整理汇总了PHP中DbUtils::executeQuery方法的典型用法代码示例。如果您正苦于以下问题:PHP DbUtils::executeQuery方法的具体用法?PHP DbUtils::executeQuery怎么用?PHP DbUtils::executeQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbUtils
的用法示例。
在下文中一共展示了DbUtils::executeQuery方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DbUtils
include 'pages/header/result_header.php';
}
$obj_utils = new DbUtils();
$obj_utils->connect();
$queryKey = HTTP_RESQUEST::get('query');
$course = HTTP_RESQUEST::get('course');
if ($queryKey == "general") {
$course = $obj_utils->getCourse();
}
$courseToShow = $course;
if ($queryKey == "challenge") {
$courseToShow = "ALL CHALLENGE";
}
$tool = new Tool($obj_utils);
$query = getQueryForKey($queryKey, $course);
$tabRequest = $obj_utils->executeQuery($query);
?>
<h1>Resultats <?php
echo $courseToShow;
?>
</h1>
<?php
if ($queryKey == "challenge" && $tabRequest != 0) {
$results = $tool->buildList($tabRequest);
?>
<table><tr><td>
<table class="principale">
<tr>
<th colspan="5"><h2>CHALLENGE</h2></th>
</tr>
<tr>
示例2: DbUtils
<table border="1">
<?php
require_once 'tools/db/DbUtils.php';
require_once 'tools/service/tools.php';
$dbUtils = new DbUtils();
$dbUtils->connect();
$tools = new Tool($dbUtils);
$tab = $dbUtils->executeQuery("select * from runnerdata order by nom, prenom");
$tabIdentique = array();
$previous = "";
$cpttab = 0;
for ($i = 0; $i < sizeof($tab); $i++) {
$current = $tab[$i]['nom'] . "_" . $tab[$i]['prenom'];
?>
<tr class="list">
<td class="listing"><?php
echo $i + 1;
?>
</td>
<td class="listing"><?php
echo $tab[$i]['nom'];
?>
</td>
<td class="listing"><?php
echo $tab[$i]['prenom'];
?>
</td>
<td class="listing"><?php
echo $tab[$i]['club'];
?>
示例3: getQueryForKey
>
<?php
echo $currentCourse;
?>
</option>
<?php
}
?>
</select>
<input type="hidden" value="changeCourse" name="actionType"/>
</form>
<br>
<?php
$query = getQueryForKey("results", $course);
$tabRunners = $obj_utils->executeQuery($query);
if ($tabRunners != 0) {
?>
<table class="principale">
<tr>
<th colspan="7"><h2>Correction des résultats de <?php
echo $course;
?>
</h2></th>
</tr>
<tr>
<th>Général</th>
<th>Formation</th>
<th>Dossard</th>
<th>Temps</th>
<th>Nouveau Temps</th>