Here\'s my attempt at it:
$query = $database->prepare(\'SELECT * FROM table WHERE column LIKE \"?%\"\'); $query->execute(array(\'value\')); while ($r
$query = $database->prepare('SELECT * FROM table WHERE column LIKE ?'); $query->bindValue(1, "%$value%", PDO::PARAM_STR); $query->execute(); if (!$query->rowCount() == 0) { while ($results = $query->fetch()) { echo $results['column'] . "\n"; } } else { echo 'Nothing found'; }