hello guys I'm having 3 months with codeigniter so today I discover an error on my pagination script :
$this->db->where("by_id",$user_id);
$this->db->order_by("date","desc");
$this->db->limit(10,$from);
$query = $this->db->get("status");
well the url is look like this : server/demo/page/10
so if user type server/nedjma/baniss/1000000000000000000000
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 '1000000000000000000000, 10' at line 5
SELECT * FROM (status
) WHERE by_id
= '58' ORDER BY date
desc LIMIT 1000000000000000000000, 10
exactly like this web site its maded by codeigniter too : [removed]
can you tell me please what's the bug ?
thank you :)