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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pokjak
Forum Newbie
Posts: 7
Joined: Wed Dec 02, 2009 4:44 am

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

Post 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).....
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

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

Post by daedalus__ »

yes, you can?

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

also try not to use access. :|
pokjak
Forum Newbie
Posts: 7
Joined: Wed Dec 02, 2009 4:44 am

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

Post by pokjak »

Thanks for the info...... But why should I try to avoid using odbc/access????? Is it not good???
Griven
Forum Contributor
Posts: 165
Joined: Sat May 09, 2009 8:23 pm

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

Post by Griven »

Access databases are not particularly well-suited to use through websites. I recommend using a MySQL database, or a SQLLite database.
pokjak
Forum Newbie
Posts: 7
Joined: Wed Dec 02, 2009 4:44 am

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

Post by pokjak »

Ooooo..... thank you
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

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

Post 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................
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

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

Post 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.
User avatar
timWebUK
Forum Contributor
Posts: 239
Joined: Thu Oct 29, 2009 6:48 am
Location: UK

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

Post by timWebUK »

Mano, are you talking about Google Suggestions? Where you start typing and it gives you possibly searches?
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

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

Post 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.
Post Reply