Welcome Guest, Not a member yet? Register   Sign In
2 questions: error404 handling and regular expressions in db..
#2

[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:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB