1 min read
How do I ckeck if the column contains the $_POST of the form?
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.