[eluser]dottedquad[/eluser]
I wanted to use query bindings as protection from unwanted characters. Will that automatically escape the unwanted values or am I having to escape them manually?
I ran the query:
Code:
$sql = $this->db->order_by($sidx, $sord)->limit($limit, $start)->get('livestock');
$query = $this->db->get($sql);
Now I'm receiving an error:
A PHP Error was encountered
Severity: Warning
Message: strpos() expects parameter 1 to be string, object given
Filename: database/DB_active_rec.php
Line Number: 1448
A Database Error Occurred
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
SELECT * FROM (`Resource` id #30, `Resource` id #34, `Array`, `Array`, `0`, `10`, `)
-Thank You,
Rich