php barre de recherche, ajout controller, update models
This commit is contained in:
parent
63da2a35b5
commit
3f87b615fa
6 changed files with 51 additions and 38 deletions
|
|
@ -58,11 +58,6 @@
|
|||
public function insert(object $objUser):bool{
|
||||
|
||||
// 2. Construire la requête
|
||||
/*$strRq = "INSERT INTO users (user_name, user_firstname, user_mail, user_pwd)
|
||||
VALUES ('".$objUser->getName()."',
|
||||
'".$objUser->getFirstname()."',
|
||||
'".$objUser->getMail()."',
|
||||
'".$objUser->getPwdHash()."')";*/
|
||||
$strRq = "INSERT INTO users (user_name, user_firstname, user_mail, user_pwd)
|
||||
VALUES (:name, :firstname, :mail, :pwd)";
|
||||
// Préparer la requête
|
||||
|
|
@ -74,8 +69,6 @@
|
|||
$rqPrep->bindValue(":pwd", $objUser->getPwdHash(), PDO::PARAM_STR);
|
||||
|
||||
// 3. Executer la requête
|
||||
//var_dump($strRq);die;
|
||||
//return $db->exec($strRq);
|
||||
return $rqPrep->execute();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue