Empty URI param transformed to 0 |
[eluser]John Fuller[/eluser]
You can use profiling to show queries that your page runs. I am not sure what an empty segment runs but apparently for you the output is zero. ![]() Either way, why not run a check on segment_1 before you use it for anything? Run the check, if there is nothing there then run a different query. You should probably always run checks for your dynamic data to make sure it is returning what you expect it to return. Also, a user can manipulate the URL, so you might want to do checks for that as well. Yes, there is a validation class, you should read up on it. You probably should sanitize your data before it gets to the point of dealing with "get_where" and that is what the validation class will do for you. |
Messages In This Thread |
Empty URI param transformed to 0 - by El Forum - 01-27-2008, 03:00 PM
Empty URI param transformed to 0 - by El Forum - 01-28-2008, 04:33 AM
Empty URI param transformed to 0 - by El Forum - 01-28-2008, 06:53 AM
Empty URI param transformed to 0 - by El Forum - 01-28-2008, 01:22 PM
Empty URI param transformed to 0 - by El Forum - 01-28-2008, 04:18 PM
|