Data['id'] > 1 ){ header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); if(isset( $_POST['PID'] )){ $PID = intval($_POST['PID']); } else { $PID = intval($_GET['PID']); }; $QS = "SELECT * FROM pictures WHERE id={$PID}"; $Result = $DATABASE->Query( $QS, false ); if( count( $Result ) ){ loadPicture( $Result[0] ); } else { loadNotPicture(); }; } else { header('location: /'); }; ?>