I have an issue with the following code :
$recherche = $_POST['recherche'];
$recherche = '%'.$recherche.'%';
$selecPrepare = self::$bdd->prepare("SELECT culmn where column LIKE '%{$recherche}%'");
$tab = array($_POST['recherche']);
$selecPrepare->execute($tab);
return $tab;
I'm sorry if someone asks the same question before, let me know if you find something about it.
Thanks.
source https://stackoverflow.com/questions/70499683/how-do-i-ckeck-if-the-column-contains-the-post-of-the-form
Comments
Post a Comment