Files
BE_CPONE/application/controllers/test/Test_kris.php
2026-04-27 10:26:26 +07:00

23 lines
434 B
PHP

<?php
class Test_Kris extends MY_Controller
{
function __construct()
{
parent::__construct();
}
function index()
{
$name = "Joko's";
$sql = "select * from m_patient where M_PatientName like ?";
$qry = $this->db->query($sql, [$name]);
if (!$qry) {
print_r($this->db->error());
print_r($this->db->last_query());
exit;
}
echo "query ok :";
echo $this->db->last_query();
}
}