search custom table in wp database with searchform

Question


Hi,
 I need for my custom table in my wordpress db a search template.
 It should a one searchform and this searchform should search all
entrys  with “LIKE” option.
 The table in my wordpress db have got 5 colum
“id,date,name,from,txt”
 if i type in the searchform example alexandera the form should
search all entrys with like option and give the result in table like
with 20 results per site
 id    date       
name        from    txt
 1    2021-01-01   
Alexander    Bank    Mail of Bank …
 30    2021-05-01   
Alexander    Bank    Mail of Bank …
 etc
 or if i type Bank should give all columes
 id    date       
name        from    txt
 1    2021-01-01   
Alexander    Bank    Mail of Bank …
 30    2021-05-01   
Alexander    Bank    Mail of Bank …
 etc
 
Thanks

logins78 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

0
logins78 4 months 2022-03-26T09:46:29-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse