I discovered an error on my pagination script within CodeIgniter:
$this->db->where("by_id",$user_id);
$this->db->order_by("date","desc");
$this->db->limit(10,$from);
$query = $this->db->get("status");
The url looks 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
) WHEREby_id
= '58' ORDER BYdate
desc LIMIT 1000000000000000000000, 10
can you tell me please what's the bug ?