Page 1 of 1

How Can I Search In My Site ?

Posted: Fri Dec 16, 2005 6:42 am
by saqib389
i have a music website....
i want that there would b a search option.. whenever user type some file name of song in search text box.... then if that song is available in site then user required song which he searched........ comes on next page ?

can any one tell me ?

Posted: Fri Dec 16, 2005 1:54 pm
by saqib389
help me guyzzzz :(

Posted: Fri Dec 16, 2005 2:06 pm
by hawleyjr
set up a table:

Code: Select all

$mySearch = 'some song';

SELECT title,track from mymusic where title like '%$mySearch%'
There are better ways to search, this is the most basic.