You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
759 B
35 lines
759 B
<?php
|
|
|
|
class Inscrit{
|
|
private $conn;
|
|
private $table = 'Inscrit';
|
|
|
|
public $id;
|
|
public $nom;
|
|
public $prenom;
|
|
public $mail;
|
|
public $mdp;
|
|
|
|
public function __construct($db){
|
|
$this->conn = $db;
|
|
}
|
|
|
|
public function read(){
|
|
$query = 'SELECT
|
|
i.id as id,
|
|
i.nom as nom,
|
|
i.prenom as prenom,
|
|
i.mail as mail,
|
|
i.mdp as mdp
|
|
FROM
|
|
'.$this->table.' i
|
|
ORDER BY
|
|
i.id';
|
|
|
|
$stmt = $this->conn->prepare($query);
|
|
$stmt->execute();
|
|
return $stmt;
|
|
}
|
|
}
|
|
|
|
?>
|