I\'m trying to make a simple search bar that searches through my database for certain words. It is possible to use the LIKE attribute without using WHERE? I want it to sear
this will not show duplicate rows anymore.
SELECT * FROM shoutbox WHERE (name LIKE '%$search%' OR foo LIKE '%$search%' OR bar LIKE '%$search%' OR baz LIKE '%$search%')