2 questions: error404 handling and regular expressions in db.. |
[eluser]Michael Wales[/eluser]
1. First do some error checking on the id's - if they are non-existant use show_404('page'); You can read about this in the Error Reporting documentation. 2. You could use the like() method. Active Record documentation. Code: $this->db->like('keywords', ' ' . $query . ' '); I included the spacing on the query so your matching exact terms. 'put' will only find 'put' and not 'putting' |
Messages In This Thread |
2 questions: error404 handling and regular expressions in db.. - by El Forum - 07-31-2007, 02:29 PM
2 questions: error404 handling and regular expressions in db.. - by El Forum - 07-31-2007, 02:40 PM
|