Welcome Guest, Not a member yet? Register   Sign In
Error Array to string conversion
#2

You are passing in an array. But it expects a single value (string).

Controller:
PHP Code:
$records $this->NewTim_Model->getRecords($getTim); 

Model:
PHP Code:
public function getRecords($timid){ 

Also, you should not write your SQL like that. You can be a subject of SQL injections.
https://www.codeigniter.com/user_guide/d...y-bindings
Reply


Messages In This Thread
RE: Error Array to string conversion - by jreklund - 08-22-2018, 12:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB