Skip to content

Instantly share code, notes, and snippets.

@adahhane
Created May 5, 2011 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adahhane/957752 to your computer and use it in GitHub Desktop.
Save adahhane/957752 to your computer and use it in GitHub Desktop.
Class Membre
<?php
/*-------------------------------------------------
----------------Class : Membre --------------------
--------------------------------------------------*/
abstract class Membre {
private $id;
private $login;
private $firstName;
private $lastName;
private $dateOfBirth;
private $email;
private $occupation;
private $password;
function __construct(){}
public static function store($login,$email,$password,$idCountry){
$query=$bdd->prepare('INSERT INTO membre(PSEUDO,MOTDEPASSE,EMAIL,NATURE,ID_PAYS,ETAT) VALUES(:login, :password, :email,:nature :idCountry, :state)');
$query->execute(array(
'login' => $login,
'passwor' => md5($password),
'email' => $email,
'nature' => "user",
'id_pays' => $idCountry,
'state' => "0"
));
}
public static function editMembre($login,$email,$password,$idCountry){
//Edition du membre
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment