本文整理汇总了PHP中BD::selectAll方法的典型用法代码示例。如果您正苦于以下问题:PHP BD::selectAll方法的具体用法?PHP BD::selectAll怎么用?PHP BD::selectAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BD
的用法示例。
在下文中一共展示了BD::selectAll方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BD
if (!isset($_GET['page'])) {
echo 'current';
}
?>
" href="index.php">Home</a></li>
<li class="menu-list">
<a class="menu-link c-blue2 js-tosections <?php
if (isset($_GET['page']) && $_GET['page'] == 'section') {
echo 'current';
}
?>
" >Sections</a>
<div class="sections">
<?php
$BD = new BD("section");
$sections = $BD->selectAll("idjeux");
foreach ($sections as $v) {
if (!empty($v)) {
echo "<a class='menu-link c-blue2' href='index.php?page=section&jeu={$v->idjeux}' >" . $v->nom . '</a>';
}
}
?>
</div>
</li>
<li class="menu-list"><a class="menu-link c-blue2 <?php
if (isset($_GET['page']) && $_GET['page'] == 'forum') {
echo 'current';
}
?>
" href="index.php?page=forum">Forum</a></li>
示例2: recupListeEvent
function recupListeEvent()
{
$BD = new BD('event');
return $BD->selectAll('date');
}
示例3: json_encode
<?php
session_start();
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
require_once '../../../app/Config.class.php';
require_once '../../../app/Bd.class.php';
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
$BD = new BD('mission');
$return = $BD->selectAll();
echo json_encode($return);
示例4: json_encode
<?php
session_start();
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
require_once '../../../app/Config.class.php';
require_once '../../../app/Bd.class.php';
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
$BD = new BD('spaceship');
$return = $BD->selectAll('prix');
echo json_encode($return);
示例5: BD
</head>
<body>
<?php
require_once "../../Core/utils.php";
echo "<h1>Test Class bd </h1></br>";
echo "<h2>Test Constructeur </h2></br>";
$BD = new BD("user");
echo "Objet crée sur la table : " . $BD->getUsedTable();
/* Test Fonction Select */
echo "<h2>Test Fonction Select </h2></br>";
$donnes = $BD->select("iduser", 1);
print_r($donnes);
echo "</br>";
/* Test Fonction Select */
echo "<h2>Test Fonction SelectAll </h2></br>";
$donnees = $BD->selectAll();
foreach ($donnees as $value) {
print_r($value);
echo "</br>";
echo "{$value->nom}";
echo "</br>";
}
/* Test Fonction addUser */
$BD->addUser("Jean", "test", 20, "homme", "testpass", 0750, "sebspas@legitan.com");
echo "<h2>Test Fonction addUser </h2></br>";
$donnees = $BD->selectAll();
foreach ($donnees as $value) {
print_r($value);
echo "</br>";
}
/* Test update */
示例6: recupTrajet
function recupTrajet()
{
$BD = new BD('trajet');
return $BD->selectAll('date');
}