Page 1 of 1

How to create a search form using php????

Posted: Thu Dec 03, 2009 7:13 pm
by pokjak
Hi I am wondering, can we create a search form with php????? Something like a page with a textbox and a button where a user can type in keywords that they(users) wanted to find which is within the database..... (In my case I am using an ODBC/Microsoft access).....

Re: How to create a search form using php????

Posted: Thu Dec 03, 2009 7:20 pm
by daedalus__
yes, you can?

http://www.phpfreaks.com/tutorial/simple-sql-search

also try not to use access. :|

Re: How to create a search form using php????

Posted: Thu Dec 03, 2009 8:14 pm
by pokjak
Thanks for the info...... But why should I try to avoid using odbc/access????? Is it not good???

Re: How to create a search form using php????

Posted: Thu Dec 03, 2009 8:20 pm
by Griven
Access databases are not particularly well-suited to use through websites. I recommend using a MySQL database, or a SQLLite database.

Re: How to create a search form using php????

Posted: Thu Dec 03, 2009 8:27 pm
by pokjak
Ooooo..... thank you

Re: How to create a search form using php????

Posted: Thu Dec 03, 2009 11:24 pm
by manojsemwal1
I also checked the phpfreak code but in this code we simply find the data what we have saved in database.
but how can i linked the reference pages where the search string is display like google................

Re: How to create a search form using php????

Posted: Fri Dec 04, 2009 1:23 am
by daedalus__
there are a lot of reasons that access databases are crap. haha, found this article: http://databases.aspfaq.com/database/wh ... ccess.html

mano, i dont understand your question.

if you want to search a database, use sql. if you want to search a file use file and text handling functions.

Re: How to create a search form using php????

Posted: Fri Dec 04, 2009 4:15 am
by timWebUK
Mano, are you talking about Google Suggestions? Where you start typing and it gives you possibly searches?

Re: How to create a search form using php????

Posted: Mon Dec 07, 2009 1:16 am
by manojsemwal1
iam not asking suggestion iam asking like if user type something in text box the result will be displayed with url webpages , where the result found in the related webpages inside the websites.