Right now my pages look something like this:
if($_GET[\'something\'] == \'somevalue\')
{
$output .= \'somecode\';
// make a DB query, fetch a row
Handle PHP error and warning in correctly by using error handling functions. ( See example here )
Best way to Error handling in PHP is, You can stop all error reporting by adding this line in top of your php file -
error_reporting(0);
//OR
error_reporting('E_ALL');
// Predefined Constant
Error handling in PHP using functions:
All functions which is listed above are used for Error handling in PHP.