23 lines
434 B
PHP
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();
|
|
}
|
|
}
|