tags:

views:

1463

answers:

1

Here's my attempt at it:

$query = $database->prepare('SELECT * FROM table WHERE column LIKE "?%"');
$query->execute(array('value'));
while ($results = $query->fetch())
{
 echo $results['column'];
}
+4  A: 

Figured it out right after I posted:

$query = $database->prepare('SELECT * FROM table WHERE column LIKE ?');
$query->execute(array('value%'));
while ($results = $query->fetch())
{
    echo $results['column'];
}
Andrew G. Johnson
That's not Murphy's law ;)
Crescent Fresh
You're a weiner.
Andrew G. Johnson