Welcome Guest, Not a member yet? Register   Sign In
How can I secure this little.
#7

[eluser]phantom-a[/eluser]
[quote author="Crimp" date="1220874905"]CI has built in error handling. It's very handy. See the user guide. I like the custom template for situations where people may speculate in an article ID or similar; you can then put up a page stating that the article in question is not available and offer some options for redirection.[/quote]

ah good call, So change my code to now.

Code:
if ($data['query']->num_rows() != 1) { // check if the ID exists or 404 page
  show_error('The Link requested was not found');
     }

Which looks a better showing the nice css styled CI 404 page.


Messages In This Thread
How can I secure this little. - by El Forum - 09-07-2008, 08:37 PM
How can I secure this little. - by El Forum - 09-07-2008, 09:23 PM
How can I secure this little. - by El Forum - 09-07-2008, 11:30 PM
How can I secure this little. - by El Forum - 09-08-2008, 12:09 AM
How can I secure this little. - by El Forum - 09-08-2008, 12:39 AM
How can I secure this little. - by El Forum - 09-08-2008, 12:55 AM
How can I secure this little. - by El Forum - 09-08-2008, 01:09 AM
How can I secure this little. - by El Forum - 09-08-2008, 02:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB