game_data_id); $gameData->game_name = $title; if(isset($gameData) && $gameFileError === 0){ unlink("../../Games/".$gameData->game_link); $gameData->game_link = ZipFileHandler($gameFileName,$gameFileTmp); } $gameData->description = $desc; if(isset($thumbnail) && $thumbnailFileError === 0){ unlink("../../../Frontend/images/".$gameData->img); $gameData->img = imagesFileHandler($thumbnailFileName,$thumbnailFileTmp); } $gameData->is_web_Based = $isWebBased; $gameData->save(); header("location: ../../../Frontend/index.html?success=UpdatedFiles"); exit(); }else{ header("location: ../../../Frontend/index.html?error=FailedUpload"); exit(); } }else{ header("location: ../../../Frontend/index.html?error=NoLogin"); exit(); }