Page 1 of 1

a search engine that searches to my mysql databse

Posted: Wed Apr 02, 2008 12:34 am
by johnjalani
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

Re: a search engine that searches to my mysql databse

Posted: Wed Apr 02, 2008 12:51 am
by Christopher
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.