Log in

View Full Version : Need help: selector script



tonyST
12-17-2008, 09:12 PM
Can someone please help me where to find or how to make selector script, for ex. like this one:

http://www.hdtvtest.co.uk/selector.php

thanks!

Nile
12-17-2008, 10:47 PM
I don't know if this is using a database or what but if you want a database to be used in this porcess I suggest the mysql "like" function. Search that on google.

tonyST
12-18-2008, 09:20 PM
ok, thanks!

and without database, like list of answers?

Nile
12-18-2008, 11:51 PM
Well, it depends if you were searching your site or a search engine. Both ways would be pretty complex. If you were searching the site I would take the glob (http://us3.php.net/manual/en/function.glob.php) function and the file_get_contents (http://us3.php.net/manual/en/function.file-get-contents.php) function and get every single file. Then I would take the similar_text (http://us3.php.net/manual/en/function.similar-text.php) function and see which match the result. After that I'd fetch the result and display it on the page. And if you were searching a search engine such as Google I don't know what you would do.

I hope this helps,
Nile

tonyST
12-19-2008, 12:21 PM
I think I'll manage to do something with that!

Thanks

Nile
12-19-2008, 09:01 PM
Tell me what you come up with, I'm interested what you can do with the idea.