this is a newbie questions and sorry for my english
im currently working on a simple lyric page
I have 2 data : title and keyword
when a user view a particular lyric, i want a related lyric by title & keyword to be display
example data in database
title
Green Day Walking Alone
Keywords(separated by commas)
Green Day, walking alone, tabs, midi
i use this code below but the result display only one title which is the same title as the currently viewed lyric
PHP Code:
SELECT title, keywords FROM lyrics
WHERE title LIKE '%".$arr[title]."%'
AND keywords LIKE '%".$arr[keywords]."%'
how to fix this
is my sql format correct ? can i used Between...AND clause
thank u in advance