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

[eluser]Ji31[/eluser]
Hi,

I have two questions, so I put them here together:

1.) If I have a path like this: http://mysite.com/id/20
And if I enter some nonexistent id (for example http://mysite.com/id/160) I get a php error. What can I do to get the error404 page?

2.) I have in the db the column named keywords where I have saved keywords separated by space. And if I want to show all articles with this keyword, how do I pass the regular expression to $this->load->where('');? Or how do I should select them?


Thanks a lot


Messages In This Thread
2 questions: error404 handling and regular expressions in db.. - by El Forum - 07-31-2007, 02:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB