Hi,
We have a database we need to search Course Titles & Descriptions for. The current setup, not written by me, goes as follows:
index.php - contains a simple search form that passes a GET request to results.php
config.php - Sets up connections to DB and other variables used for SQL Statements. Calls on a separate framework called adodb for its functions.
results.php - calls on config.php sends SQL Query to DB, returns and formats results into HTML listings of Courses
detail.php - also calls on config.php queries specific fields (instructor, location, time) in DB for selected course.
We’re using a setup that is based on the Structure module. And I’m pretty sure I won’t be able to implement this PHP using templates.
So I’m here looking for some help with direction, I’m not sure if I should be building a plugin or a module for this?
Thank you in advance for your help.
Moved to HowTo by Moderator