You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/application/models/mail_accounts_model.php

20 lines
532 B
PHTML

<?php
class mail_accounts_model extends CI_Model {
function __construct() {
parent::__construct();
$this->HT = $this->load->database('HT', TRUE);
}
function get_list() {
$sql = "
select mat_dISPLAYNAME as email,CONVERT(VARCHAR(100),MAT_TC) as password,Tourmanager.dbo.GetOperatorName(MAT_OPI_SN,2) as username from mailinfo.dbo.ML_MailAccounts
";
$query = $this->HT->query($sql);
// print_r($this->HT->queries);
return $query->result();
}
}