Date: Fri, 7 Dec 2012 14:58:45 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0) Content-Type: application/x-phpwiki; pagename=Help%2FSqlResultPlugin; flags=PAGE_LOCKED; markup=2; charset=UTF-8 Content-Transfer-Encoding: binary The **~SqlResult** [[Help:WikiPlugin|plugin]] displays results of arbitrary SQL select statements in table form. The database definition, the DSN, must be defined in the local file ##config/SqlResult.ini## A simple textfile with alias = dsn lines. Optional template file to format the result and handle some logic. Template vars: %%where%%, %%sortby%%, %%limit%% == Usage == {{{ <> }}} == Arguments == {| class="bordered" |- ! Argument ! Description ! Default value |- | **alias** | DSN database specification | false |- | **ordered** | if to display as {{{
    }}} list: single col only without template | false |- | **template** | use a custom {{{/template.tmpl}}} | false |- | **where** | custom filter for the query | false |- | **sortby** | for paging | false (no paging) |- | **limit** | for paging | 0,50 (only the first 50) |} == Examples == {{{ <> <> <> }}} == Author == * [[Help:Reini Urban|Reini Urban]] == See Also == ---- [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]