Skip to main content
17 events
when toggle format what by license comment
Jan 19, 2015 at 18:49 vote accept Chrillewoodz
Jan 19, 2015 at 14:49 comment added Gellweiler I've cleaned up the loop, hopefully that makes it easier for you to understand what I'm doing. It is OK to learn function oriented programming fist before diving into OOP, so you can ignore the OOP and Tools section for now and return to them when you're ready to take that step.
Jan 19, 2015 at 14:43 history edited Gellweiler CC BY-SA 3.0
added 300 characters in body
Jan 19, 2015 at 14:38 comment added Gellweiler I loop through the array $filters using foreach and then call filter_var with the params from $filter in the the loop. Create a try catch block around your main program and just don't catch DB Exceptions in your filter function, that way they travel up the call stack until they are caught by your main try and catch block.
Jan 19, 2015 at 13:59 comment added Chrillewoodz Under "structure" you said "use a loop and filter_var like this:" but I didn't see either of them being used in the example. Care to explain what you meant there? Also, how do I pass the errors to the main try catch block in a smart way?
Jan 19, 2015 at 11:37 history edited Gellweiler CC BY-SA 3.0
added 379 characters in body
Jan 18, 2015 at 22:53 history edited Gellweiler CC BY-SA 3.0
added 7 characters in body
Jan 18, 2015 at 22:44 history edited Gellweiler CC BY-SA 3.0
edited body
Jan 18, 2015 at 22:38 history edited Gellweiler CC BY-SA 3.0
edited body
Jan 18, 2015 at 22:32 history edited Gellweiler CC BY-SA 3.0
edited body
Jan 18, 2015 at 22:24 history edited Gellweiler CC BY-SA 3.0
added 17 characters in body
Jan 18, 2015 at 22:17 history edited Gellweiler CC BY-SA 3.0
added 7253 characters in body
Jan 18, 2015 at 22:11 history edited Gellweiler CC BY-SA 3.0
added 7253 characters in body
Jan 18, 2015 at 20:34 history edited Gellweiler CC BY-SA 3.0
deleted 174 characters in body
Jan 18, 2015 at 19:42 history edited Gellweiler CC BY-SA 3.0
deleted 3 characters in body
Jan 18, 2015 at 19:36 history edited Gellweiler CC BY-SA 3.0
added 68 characters in body
Jan 18, 2015 at 19:27 history answered Gellweiler CC BY-SA 3.0