[eluser]Unknown[/eluser]
Hi guys, I'm having trouble getting my pagination to work. I have setup a model to get results based on a users search terms using a like query.
Code:
$this->db->like('product', $this->input->post('q'));
The search works fine until I go to the paginated links, then I receive this error:
Error Number: 1064
SELECT * WHERE `product` LIKE '%%
I'm guessing the post data is being reset when I click a paginated link. Any suggestions would be greatly appreciated.
Sorry, I'm new to programming and this is probably a silly question but it's got me stumped.