Initial import
This commit is contained in:
22
application/controllers/test/Test_kris.php
Normal file
22
application/controllers/test/Test_kris.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user