query( $sql ) ) == false ) echo $gz_db->error.'
'.$sql.'
'; else { $row = $r->fetch_assoc(); header("Location: ".BASE_URL.DOWNLOAD_LINK.FILE_LIST_LINK.getFileLink( $row['file_id'] ) ); $r->close(); } } // Else, if we got an id else if( isset( $_GET['id'] ) ) header("Location: ".BASE_URL.DOWNLOAD_LINK.FILE_LIST_LINK.getFileLink( $_GET['id'] ) ); ?>