please me, i need to create a simple search engine that is capable of searching to my database, i have the idea on doing it on SQL code, something like this (select *.* from mytable where productName like '%' + searchtext1 + '%' ) but how about the other php codes like how can i bring the value of the text box to the php block when i click on the button??
i hope you could help me, thanks
a search engine that searches to my mysql databse
Moderator: General Moderators
-
johnjalani
- Forum Newbie
- Posts: 6
- Joined: Tue Apr 01, 2008 5:45 am
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: a search engine that searches to my mysql databse
I think your idea of using SQL to search the database is an excellent one. Look in the PHP manual at the MySQL sections. There are many examples there.
(#10850)