Problem with pagination |
[eluser]Docmo[/eluser]
Yes! Ok i'm gonna start from the beginning, the view, here is the code for the seach engine in the view : Code: <?php echo form_open('job/resultats');?> So, if we type the word "test", we obtain the link http://www.job24.ca/job/resultats with the 3 firts results containing the word "test". The code in the controller : Code: $tmp=3; So the problem is, when we click on 2, the browser reload the page, but when it happens, the browser forgets our query in the search engine, and executes another part in the code but he hasn't anymore the $_POST['categorie'] and $_POST['contenu'], so we obtain a SQL error because we lost a variable! Hope you better understand the problem! Thx! ... |
Messages In This Thread |
Problem with pagination - by El Forum - 06-25-2009, 02:22 PM
Problem with pagination - by El Forum - 06-25-2009, 02:29 PM
Problem with pagination - by El Forum - 06-25-2009, 03:03 PM
Problem with pagination - by El Forum - 06-25-2009, 04:16 PM
Problem with pagination - by El Forum - 06-25-2009, 04:25 PM
Problem with pagination - by El Forum - 06-26-2009, 04:21 AM
Problem with pagination - by El Forum - 06-26-2009, 02:24 PM
|