How can I check if a query went wrong instead of showing errors to users (containing database info which is unsafe).
Let's say I have such situation where my paging class takes a URI segment to show page
example.com/page/uri_segment. If someone write it like this example.com/page/bla_bla_bla I get an error that shows information about my database.
How can I handle this?