MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-$page_security = 2;
+$page_security = 'SA_DIMENSIONREP';
// ----------------------------------------------------------------
// $ Revision: 2.0 $
// Creator: Joe Hunt
$sql = "SELECT *
FROM
".TB_PREF."dimensions
- WHERE reference >= '$from'
- AND reference <= '$to'
+ WHERE reference >= ".db_escape($from)."
+ AND reference <= ".db_escape($to)."
ORDER BY
reference";
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
- $rep->Header();
+ $rep->NewPage();
$res = getTransactions($fromdim, $todim);
while ($trans=db_fetch($res))