As of v7.5.11, SQL Form is no longer distributed with WebGUI. It is available via Subversion at https://svn.webgui.org/sqlform/WebGUI/. The websvn interface is here.
The SQL Form object provides a form and search function to an external database. You must setup an external link and provide privileges to the assigned user. To grant all privileges to a new MySQL table use the following sql (replace DATABASE and USER with your local settings):
create database DATABASE;
grant all privileges on DATABASE.* to USER;
Then add a new Database link via the Databases option in the Admin Console.
1. Set the DSN (something like the following for a MySQL database):
DBI:mysql:DATABASE;host=localhost;port=3306
2. Set the user and password.
3. Edit the Allowed Keywords as needed. You'll at least want to include 'insert' and 'update'. Here's the complete list of options:
select
describe
show
insert
update
alter
create
delete
index
4. Save the database link settings.
You can customize which fields are show in the search results. To do this, first edit the field you want to hide. Then click on the 'Search and Summary tab and set 'Show in search results' to 'No'.
merchants.area LIKE concat('%',?,'%')
Keywords: