|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
chrisdegrote Smarty Rookie
Joined: 03 Sep 2009 Posts: 5
|
Posted: Fri Oct 15, 2010 4:45 pm Post subject: How to: make an advanced search template with smarty. |
|
|
Hey all,
For my site www.baanict.com I would like to make an advanced search page. I've made a HTML version of the search options I would like to include. But I don't got a clue how to connect the form fields through smarty code with my MySQL database.
In the forum I can't find a post that's helpfull for me.
My site uses the open source project Jobberbase and many of us would like to see this option working for them.
My question exactly is what kind of function should I attach to for example to search a keyword in only the topic of a listing?
I hope somebody can help me with this issue or give me a suggestion to a helpfull tutorial.
Thanks in advance for your time |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Oct 15, 2010 4:48 pm Post subject: |
|
|
It's no different than using plain PHP, you are just using Smarty to display the results. When you click the form submit, it will POST the data from the form to a URL on the server (PHP script) and it processess the POST data, does a SQL query and assigns the results to a template and displays it. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|