Home › Forums › Front-end Issues › Font-end search form for a subfield › Reply To: Font-end search form for a subfield
Thanks @hube2
Sorry for the delay, I’ve had a big DB error for several days…
I’ve tried to escape but it doesn’t work. Maybe with the prepare method, I’ll try to figure it out.
Just before setting this topic on solve, I have one last question : what if this query takes too long and generate an error ? My website has been down for 4 days, and the host said it was due to a “never ending SQL request”…
Is there a way to secure this query ?
What I’ve done for now is to set a max for the $max_rows var (if it’s above 35 the loop won’t start).
If you have any idea they are more than welcome 🙂
Thanks a lot again for all your help on this
Lucas
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.