$get_id = $_GET['id'];
$get_type_id = $_GET['type_id'];
$get_category_id = $_GET['category_id'];
$get_title = $_GET['title'];
$get_url = $_GET['url'];
$get_time = $_GET['time'];
//Read xf_list
$sql = $pdo->prepare("SELECT * FROM xf_list");
$sql->execute();
$result1 = $sql->fetchAll(PDO::FETCH_OBJ);
<?php foreach ($result as $value) { ?>
<tr>
<td><?=$value->id ?></td>
<td><a href="<?=$value->url ?>" target="_blank"><?=$value->title ?></a></td>
<?php } ?>
</tr>
type_id
<td><a href="<?=$value->url_type ?>" target="_blank"><?=$value->title_type ?></a></td>
category_id
<td><?=$value->title_category?></td>
<?php
function downloadThatPhp($nameOfTheFile)
{
header("Pragma: public");
header("Expires: 0"); // set expiration time
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/text/x-vCard");
header("Content-Disposition: attachment; filename=".basename($nameOfTheFile).";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($nameOfTheFile));
@readfile($nameOfTheFile);
exit(0);
}
// and this how to use:
// download that php file with your own risk :)
$file = $_REQUEST['file_name'];
$downloadThis = "http://domain-name.com/".$file;
if (file_exists($file)) {
downloadThatPhp($downloadThis);
}
?>