Merge branch 'main' into guillaume
This commit is contained in:
commit
9c19aa5525
24 changed files with 598 additions and 121 deletions
|
|
@ -27,10 +27,13 @@
|
|||
|
||||
$strWhere = " WHERE ";
|
||||
|
||||
// Recherche par mot clé
|
||||
// Recherche par mot clé avec quote pour éviter bug du '
|
||||
if ($strKeywords != '') {
|
||||
$strRq .= " WHERE (project_title LIKE '%".$strKeywords."%'
|
||||
OR project_content LIKE '%".$strKeywords."%') ";
|
||||
|
||||
$strSafeKeywords = $this->_db->quote("%" . $strKeywords . "%");
|
||||
|
||||
$strRq .= " WHERE (project_title LIKE ".$strSafeKeywords."
|
||||
OR project_content LIKE ".$strSafeKeywords.") ";
|
||||
|
||||
//$boolWhere = true;
|
||||
$strWhere = " AND ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue