What\'s the difference between
SELECT foo FROM bar WHERE foobar=\'$foo\'
AND
SELECT foo FROM bar WHERE foobar LIKE\'$foo\'
According to the MYSQL Reference page, trailing spaces are significant in LIKE but not =, and you can use wildcards, % for any characters, and _ for exactly one character.