Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Samuel Glister
Samuel Glister
12,471 Points

Searching a custom table in wordpress

Hi All,

I'm in the middle of developing a new website for a client, and have come up against something i've not done before.

I have a custom table in my wordpress install database called sc_products then in here there are 3 columns containing product data.

I need to create a search form that will search all the data in this table only then return the matched results below the form - if nothing is returned it would return a string with a link to a contact form.

Would anyone be able to help out with how I could create this form, any help would be really helpful.

Thanks!