Welcome Guest, Not a member yet? Register   Sign In
Misleading passage in user_guide
#11

[eluser]Michael Wales[/eluser]
Quote:I’ve been guilty of relying on the database class cleaning by passing uri segments to the query but lets say the segment needs to be a number but it is a string with validation the rendering should be stopped before querying the database. With the current validation library it’s impossible to do

Code:
function getPost($id = NULL) {
  if (($id !== NULL) && (is_int($id)) {
    // Show Post
  } else {
    redirect('');
    return;
  }
}

Maybe I am missing something or the intent of your comments xwero?


Messages In This Thread
Misleading passage in user_guide - by El Forum - 03-09-2008, 10:55 PM
Misleading passage in user_guide - by El Forum - 03-09-2008, 11:03 PM
Misleading passage in user_guide - by El Forum - 03-09-2008, 11:05 PM
Misleading passage in user_guide - by El Forum - 03-10-2008, 12:19 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 12:23 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 01:56 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 02:15 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 02:18 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 02:50 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 05:09 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 07:41 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 08:09 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 08:49 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:09 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:11 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:38 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:40 AM
Misleading passage in user_guide - by El Forum - 03-10-2008, 09:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB