[Help me!] How to add a search function that search a table and show results...

terrycody

Elite Member
Joined
Sep 29, 2012
Messages
6,427
Reaction score
3,324
Guys please help me!!!!!!!!!!!!!!!

I need a simple search function/bar, that is, a big search bar in the middle of page, then a user can input a name(or ID numbers) to see if this name got qualified or not in our database, if yes, the result page will show its name, and other details, and if not, it will say something like, this person is not qualified, blahbla, can any plugins do this? I am pretty sure there should be a plugin can do this, just I can't find it!

Please help me guys!
 
Anyone plz? A wordpress site for sure, I just can't find which plugin does this thing.
 
I have a feel that https://wordpress.org/support/topic/search-a-database-csv-and-display-the-results-on-a-webpage/

this plugin can do this but when I followed that shortcode, nothing happens, must be sth is wrong, I hate to say that almost all plugin authors never explain their plugins well to users, what were they thinking?! How come possible a non tech person figure out the complicated plugin settings while there are even no guides on these fxxking hidden features? Gotta ask at the public forum though...
 
Ask chatgpt to generate a code for it, specify wordpress if it's a wordpress platform. However, there are some school result viewing plugins that you can use to achieve same effect
 
Ask chatgpt to generate a code for it, specify wordpress if it's a wordpress platform. However, there are some school result viewing plugins that you can use to achieve same effect

Got no Chatgpt on my hand right now, also I don't think it can generate the right Wordpress PHP/plugin codes since I also have some other tiny requirements.

But I will try to search
school result viewing plugins
you mentioned, btw, do you happen to know any names?
 
Got no Chatgpt on my hand right now, also I don't think it can generate the right Wordpress PHP/plugin codes since I also have some other tiny requirements.
you can use the free version just register using gmail.
and you you want specific try to custom the ajax search and triger on blank template that result.
 
Guys please help me!!!!!!!!!!!!!!!

I need a simple search function/bar, that is, a big search bar in the middle of page, then a user can input a name(or ID numbers) to see if this name got qualified or not in our database, if yes, the result page will show its name, and other details, and if not, it will say something like, this person is not qualified, blahbla, can any plugins do this? I am pretty sure there should be a plugin can do this, just I can't find it!

Please help me guys!
If you need a new page.

You can simply create a custom php page template. i don't know the specifics of what you need but here is it what you need to do.

Create a custom page template in php with a search bar and submit button.

Simply add the functionality to connect with the current mysql database and search a column to see if a value exists or not.

This can be achieved with a simple if and else statement.

This will help you to achieve the most accurate results.

This could be a example -

have a look at the code here as bhw is not allowing me to paste php - https://pastebin.com/0A3nf5zK
 
you can use the free version just register using gmail.
and you you want specific try to custom the ajax search and triger on blank template that result.
If you need a new page.

You can simply create a custom php page template. i don't know the specifics of what you need but here is it what you need to do.

Create a custom page template in php with a search bar and submit button.

Simply add the functionality to connect with the current mysql database and search a column to see if a value exists or not.

This can be achieved with a simple if and else statement.

This will help you to achieve the most accurate results.

This could be a example -

have a look at the code here as bhw is not allowing me to paste php - https://pastebin.com/0A3nf5zK

It should be very simple for a coder I know it, sadly I am not, so I have a hard time to implement these myself, I am pretty sure there are plugins can do this function, just, I need to find it out. Anyway, thanks for the tips guys.

Let me try to find a made plugin to do this.

Jp student result management system

I will check this, thx man!
 
Guys I need a help here!


The plugin I found from this thread is very very close to what I am looking for, just, there are some tiny problems, I tried to contact the author but he is not very cool and a bit reluctant to help, though he indeed gave me some tips.

After tinkering a bit, now I still have 2 problems and waiting for his reply via email.

Meanwhile, one of these I guess it is easier to solve, its a CSS related problem, maybe someone could give me some help if he knows how to solve this:

------------------------------------------------------------------------------------------------------
Lets see this test URL:
Code:
https://www.streamingsurgeries.com/search-our-database/

As you can see, it got an empty square which is annoying, I tried some CSS code online in order to hide it, I see the selector is:
Code:
#participants-list-1 > table > tbody > tr > td

This can indeed hide the empty, but the search result also disappeared! ( input "terry" then you can see the result sample), I guess this result is also included in that td element.

So in this case, how to hide this useless blank while keep the result unaffected? I am all ears if anyone knows the trick, thanks!
 
Back
Top