Try the following:
$stmt = $db->prepare("SELECT * * FROM ARTICULOS WHERE DESARROLLO LIKE :search");
$search = '%SUVALOR%';
$stmt->bindValue(':search', $search, PDO::PARAM_STR);
$stmt->execute();
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Another example:
You have to include the signs %
in $params
:
$query = "SELECT * FROM tabla WHERE direccion LIKE ? OR direccion LIKE ?";
$params = array("%$valor1%", "%$valor2%");
$stmt = $handle->prepare($query);
$stmt->execute($params);
If you look at the query generated in this previous code, it would look something like: SELECT * FROM tabla WHERE direccion LIKE '%"calle1"%' OR direccion LIKE '%"calle2"%'
, because the prepared statement is quoting its values within a string already mentioned.