Link to home
Start Free TrialLog in
Avatar of netslt
netslt

asked on

wordpress plugin base to show search form, query mysql and show result on a page

Hi

I need a simple plugin base code that:

- shows a search form (simple text input + submit button) on a page
- when submitted queries mysql db & does some stuff with retrieved data (Hello world text would be ok for the sample - I can manage the rest)
- shows the answer/results on the same page below the search form

It would be perfect if there would be a *shortcode* that can be inserted on pages - and where it is inserted the above search form / results would show

Thanks!
Avatar of Gary
Gary
Flag of Ireland image

What's wrong with the multitude of plugins that already exist or the built in search?
If you want a custom plugin then you would be better off hiring someone to do it for you.
We are here to answer questions.
Avatar of netslt
netslt

ASKER

I dont want to do a classical search for wordpress content.

I want to search a custom database and display the results.

I know how to do this in php, but would like to know how to integrate it into wordpress.

Just need a basic framework as described in my question to start from there.

So yes - it is a question: how do i integrate this into a wordpress page.

And yes, I know I can hire someone for this if I want  - but as I say I just need the basics to get me started quickly - the complex thing is the query & display of the results, already got that finished, just need to integrate it into a wordpress page.

GaryC123 thanks for your response, but it is not very helpful....
Avatar of netslt

ASKER

Maybe I missunderstood you: "multitude of plugins that already exist" - maybe you know a plugin that does something similar to what I want?

Then please name it... I could start from there.
No because you omitted you were using a completely separate db.
What have you tried?
In WP you can use its own wpdb class to connect to the db
Your basic framework is not basic at all
Avatar of netslt

ASKER

I wrote "I want to search a custom database and display the results."

so custom database does not sound like the wordpress db.

also to query the db is not the problem.

The question is on how to show the search form, where to put the processing code & how show the results after processing.
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial