smarty et merge de tout fini ( ദ്ദി ˙ᗜ˙ )
This commit is contained in:
parent
a774205594
commit
6ed4394dda
113 changed files with 11964 additions and 1192 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
require_once('./config/database.php');
|
||||
require_once('mother_model.php');
|
||||
|
||||
|
||||
/**
|
||||
* Traitement des requêtes pour les projets
|
||||
|
|
@ -94,4 +95,21 @@
|
|||
//return $db->exec($strRq);
|
||||
return $rqPrep->execute();
|
||||
}
|
||||
|
||||
public function findOne(int $intId) {
|
||||
$strRq = "SELECT project.*,
|
||||
CONCAT(users.user_firstname, ' ', users.user_name) AS 'project_creatorname',
|
||||
users.user_image,
|
||||
category.category_name
|
||||
FROM project
|
||||
INNER JOIN users ON users.user_id = project.project_user
|
||||
LEFT JOIN category ON category.category_id = project.project_category
|
||||
WHERE project.project_id = :id";
|
||||
|
||||
$rqPrep = $this->_db->prepare($strRq);
|
||||
$rqPrep->bindValue(":id", $intId, PDO::PARAM_INT);
|
||||
$rqPrep->execute();
|
||||
|
||||
return $rqPrep->fetch();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue