Ejemplo n.º 1
0
                    <div id="backendadmin-options2" class="half halfright">



                    </div>



                      <h5><?php 
echo $desc;
?>
</h5>

<?php 
selectDocuments('1');
?>
    <div class="halffull document"> </div>

                    <div class="halffull download">  </div>


                </div>



            </div>



        </div>
Ejemplo n.º 2
0
<?php

include_once 'connect.php';
if (isset($_GET["table"])) {
    $table = $_GET['table'];
}
switch ($_GET["table"]) {
    case "scores":
        selectScores($_GET);
        break;
    case "personnes":
        selectPersonnes($_GET);
        break;
    case "documents":
        selectDocuments($_GET);
        break;
    default:
        break;
}
//selection   scores
function selectScores($data)
{
    global $conn;
    $sql = "SELECT * FROM scores WHERE id_perso ='" . $data["id_perso"] . "' ";
    $result = $conn->query($sql);
    if ($result->num_rows > 0) {
        // output data of each row
        while ($row = $result->fetch_assoc()) {
            echo "<br> id: " . $row["id"] . " distance: " . $row["distance"] . " id_doc" . $row["id_doc"] . "<br>";
        }
    } else {
Ejemplo n.º 3
0
include_once 'connect.php';
switch ($_GET["table"]) {
    case "score":
        selectScore($_GET);
        break;
    case "personne":
        selectPersonne($_GET);
        break;
    case "AllUsers":
        selectAllUsers();
        break;
    case "AllScores":
        selectAllScores();
        break;
    case "AllDocuments":
        selectDocuments();
        break;
    case "document":
        selectOneDocument($_GET);
        break;
    default:
        break;
}
function selectAllScores()
{
    global $conn;
    $list = array();
    $sql = "SELECT * FROM scores";
    $result = $conn->query($sql);
    if ($result->num_rows > 0) {
        while ($row = $result->fetch_row()) {
Ejemplo n.º 4
0
                    <div id="backendadmin-options2" class="half halfright">



                    </div>



                           <h5><?php 
echo $desc;
?>
</h5>

<?php 
selectDocuments('0');
?>
    <div class="halffull document"> </div>

                    <div class="halffull download">  </div>


                </div>



            </div>



        </div>