troubleshooting Question

Website Search using PHP MYSQL

Avatar of JiveMedia
JiveMediaFlag for Australia asked on
Web DevelopmentPHP
6 Comments2 Solutions338 ViewsLast Modified:

Im looking to build a website search that searches a variety of database fields in multiple tables.
I have a main category table and a sub category table, both stores main page content and descriptions, names etc. When someone types in computer for example, i want the selected fields in both tables to be searched and then return the results to the search.php page.
Example of Database Tables


Sub Category

HTML Form for Search on index.php
<form  method="get" action="search.php" id="search-form">
<label for="search">Website Search</label>
<input name="search" type="text" value="" />
<input type="submit" name="submit" value="Search" id="search-button">
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros