a search engine that searches to my mysql databse

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
johnjalani
Forum Newbie
Posts: 6
Joined: Tue Apr 01, 2008 5:45 am

a search engine that searches to my mysql databse

Post 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
User avatar
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

Post 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.
(#10850)
Post Reply