noonespecial
09-02-2009, 10:21 PM
I have a mysql table with a bunch of band name - album names (for release dates):
Example: Paramore - Brand New Eyes
Now on a page I am grabbing all the results that match that particular band.
At the moment I am doing it like this:
title LIKE '%".$name."%'
However, this is searching through the entire word ... so if a band's name is in the album name for another artist ... it shows up incorrectly.
Is there anyway to fix this?
Example: Paramore - Brand New Eyes
Now on a page I am grabbing all the results that match that particular band.
At the moment I am doing it like this:
title LIKE '%".$name."%'
However, this is searching through the entire word ... so if a band's name is in the album name for another artist ... it shows up incorrectly.
Is there anyway to fix this?