Ejemplo n.º 1
0
 public function __construct($source = 0, $nomCategorie = 0)
 {
     $this->source = $source;
     $this->nomCategorie = $nomCategorie;
     $this->dbh = connectionBd();
 }
Ejemplo n.º 2
0
<?php

$dbh = connectionBd();
$stmt = $dbh->prepare("SELECT Nom FROM categorie WHERE ID = :id");
$stmt->bindParam(':id', $_SESSION['ID']);
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_OBJ)) {
    echo '<OPTION name =' . $row->Nom . '>' . $row->Nom . '</OPTION>';
}
// il faudra degager cette partit qui correspond a afficherCategorie mais pour le moment je ne voit pas
// comment l'implementer
Ejemplo n.º 3
0
 public function __construct($nomCategorie)
 {
     $this->nomCategorie = $nomCategorie;
     $this->dbh = connectionBd();
 }