|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/warroom/ |
Upload File : |
<?php
include "db.inc.php";
mysql_select_db("eoffice_master") or die("Can't select database.");
$iresult = mysql_query("SET character_set_results=tis-620");
$iresult = mysql_query("SET NAMES TIS620");
$sid = $_GET['id'];
$pid = $_GET['pid']+1;
/*
$link = mysql_connect("sapphire01", "root", "sapphire") or die("Can't connect.");
mysql_select_db("immigrant_57") or die("Can't select database.");
$iresult = mysql_query("SET character_set_results=tis-620");
$iresult = mysql_query("SET NAMES TIS620");
*/
$result = mysql_query("SELECT pic".$pid." as pic FROM tbl_face_image WHERE person_id ='$sid'");
while($row = mysql_fetch_array($result)) {
if ($row['pic']) {
header("Content-Type:image/jpg");
header("Content-Disposition: attachment; filename=blacklist.jpg;" );
print $row['pic'];
}
}
mysql_close($link);
?>