php require_once inc functions php require inc languages php require l

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<?php
require_once('inc/functions.php');
require('inc/languages.php');
require('lib/Smarty/Smarty.class.php');
require('db.php');
$db = new DB;
$data = $db->executeQuery("запрос");
foreach( $data as $key => $value )
{
echo $value;
}
$smarty=new Smarty;
$smarty->assign('data', $data);
$smarty->display('mail.tpl');
?>