No like in getResultArray |
08-10-2018, 12:26 AM
(This post was last modified: 08-10-2018, 12:54 AM by puschie. Edit Reason: added code )
the like function return a $this, and the builder class does not have the getResultArray functions.
you need to execute the query first ( you have no action applied, so ci use select as default. to execute your builder ->get() ) https://bcit-ci.github.io/CodeIgniter4/d...cting-data public function searchPart($data) { return $this->db->table('par')->like('title', $data)->get(); } |
Messages In This Thread |
No like in getResultArray - by Nome - 08-08-2018, 02:00 PM
RE: No like in getResultArray - by John_Betong - 08-08-2018, 11:18 PM
RE: No like in getResultArray - by Nome - 08-09-2018, 01:58 AM
RE: No like in getResultArray - by John_Betong - 08-09-2018, 02:09 AM
RE: No like in getResultArray - by Nome - 08-09-2018, 03:05 AM
RE: No like in getResultArray - by John_Betong - 08-09-2018, 08:40 AM
RE: No like in getResultArray - by Nome - 08-09-2018, 11:54 AM
RE: No like in getResultArray - by John_Betong - 08-09-2018, 11:33 PM
RE: No like in getResultArray - by puschie - 08-10-2018, 12:26 AM
|