| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home2/cp648411/public_html/ilawasia.onnud20.com/class/ |
Upload File : |
<?php
/**
*
*/
class SettingClass extends Viewdata
{
public function Index()
{
$name_table = 'ct_setting';
$search = 'SettingId = 1';
$sql = array('table'=>$name_table,'where'=>$search);
$view = $this->view($sql);
$row = $this->q($view);
$data = array(
"SettingId" => $row['SettingId'],
"ThbPerOneUsb" => $row['ThbPerOneUsb'],
"UpdateDateTime" => $row['UpdateDateTime'],
"UpdateBy" => $row['UpdateBy'],
);
return $data;
}
public function selectDB($table,$count,$where)
{
$sql = array('table'=>$table,'count'=>$count,'where'=>$where);
$view_sql = $this->view($sql);
$row = $this->q($view_sql);
$data = array(
"print" => $row['name'],
"view_sql" => $view_sql,
);
return $data;
//return $sql;
}
}
?>