Nanosha Posted April 20, 2007 Share Posted April 20, 2007 Hi... please how can I make a website with search function? as I read here, I have to use MySQL and PHP ..... but how???? Quote Link to comment https://forums.phpfreaks.com/topic/47857-solved-help-please/ Share on other sites More sharing options...
ToonMariner Posted April 20, 2007 Share Posted April 20, 2007 this is a php question... you enter a search term into a text box and then use that term to query the database on which ever tables and fields you want. simply report the results returned... You will find the LIKE'%$_POST['searchterm']%' and MATCH (`field1`, `field2`) AGAINST ('$_POST['searchterm']', IN BOOLEAN MODE) useful in this task... Quote Link to comment https://forums.phpfreaks.com/topic/47857-solved-help-please/#findComment-233862 Share on other sites More sharing options...
Nanosha Posted April 20, 2007 Author Share Posted April 20, 2007 this is a php question... you enter a search term into a text box and then use that term to query the database on which ever tables and fields you want. simply report the results returned... You will find the LIKE'%$_POST['searchterm']%' and MATCH (`field1`, `field2`) AGAINST ('$_POST['searchterm']', IN BOOLEAN MODE) useful in this task... can u explain more please? I wirte the site with http language and frontpage programe. What I want to do is, that the site is with Register Member, and with Search function, so if somebody search for somebody just write the nickname and will find him with all the Information about him. so how can I make this? ??? Quote Link to comment https://forums.phpfreaks.com/topic/47857-solved-help-please/#findComment-233870 Share on other sites More sharing options...
fenway Posted April 20, 2007 Share Posted April 20, 2007 You'll have to combine PHP & MySQL for this... there are plenty of tutorials everywhere, including on this site. Quote Link to comment https://forums.phpfreaks.com/topic/47857-solved-help-please/#findComment-233926 Share on other sites More sharing options...
in2_php Posted April 20, 2007 Share Posted April 20, 2007 Hi Nanosha, Well according to your need you want to register users and add let other users to search this list. This Obiviously need database. or you can do it with a flat file(*.txt) or XML files .. any way you do you need to have a "web programming language to do the trick of seaching through the database or flat file. Or if you have javascript enabled on your browser please you can write the registered users name line by line and split and compare the each line to get the searched name. Regards Bob Quote Link to comment https://forums.phpfreaks.com/topic/47857-solved-help-please/#findComment-234081 Share on other sites More sharing options...
Nanosha Posted April 23, 2007 Author Share Posted April 23, 2007 thank u all 4 the answers Quote Link to comment https://forums.phpfreaks.com/topic/47857-solved-help-please/#findComment-235933 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.