C plu KC ٩(^ᗜ^ )و ´-

This commit is contained in:
Yasder5 2026-02-19 23:19:20 +01:00
parent 26c81bc3c6
commit 738c14c451
8 changed files with 33 additions and 29 deletions

View file

@ -154,7 +154,9 @@
*/
public function findUserById(int $intId): array|bool {
$strRq = "SELECT user_name, user_firstname, user_pseudo, user_mail, user_password, user_phone, user_work, user_location, user_description FROM users WHERE user_id = :id";
$strRq = "SELECT user_id,user_status ,user_image ,user_name, user_firstname, user_pseudo, user_mail, user_phone, user_work, user_location, user_description, authorisation_name
FROM users INNER JOIN authorisation ON authorisation.authorisation_id = users.user_status
WHERE user_id = :id";
$prep = $this->_db->prepare($strRq);
$prep->bindValue(':id', $intId, PDO::PARAM_INT);
@ -165,7 +167,9 @@
public function findUserByPseudo(string $strPseudo): array|bool {
$strRq = "SELECT * FROM users WHERE user_pseudo = :pseudo";
$strRq = "SELECT user_id,user_image, user_status ,user_name, user_firstname, user_pseudo, user_mail, user_phone, user_work, user_location, user_description, authorisation_name
FROM users INNER JOIN authorisation ON authorisation.authorisation_id = users.user_status
WHERE user_pseudo = :pseudo";
$prep = $this->_db->prepare($strRq);
$prep->bindValue(':pseudo', $strPseudo, PDO::PARAM_STR);
@ -180,6 +184,6 @@
$rq->bindValue(":pseudo", $pseudo, PDO::PARAM_STR);
$rq->execute();
return (bool)$rq->fetchColumn();
return $rq->fetchColumn();
}
}