|
The question is too general. Problem need more information about.
For starter, I will say:
1. you need to have a form something like:
<form action="/search.php">
Query: <input type="edit" name="q"/>
<input type="submit" value="Search"/>
</form>
2. Then in your php script (search.php), you need to convert q to a SQL statement. For example:
"select * from products where description like '%".$_REQUEST['q']."%'";
3. then display the result one by one.
4. then you also need to have an "advance search UI" like advance_search.php which will take more fields (for example, if your production database is about clothing, you need to let the user specify color, size, etc..). Then do step 2 again.
Again, the solution is very general, you probably need to do more than this (for example, make sure the query is MySQL safe, etc..)
__________________
TextLinksDepot.com - Please login or register to view this content. Registration is FREE
|