can't download file from database, got error, help me please..
<?php
require("conn2.php");
$sql="select image from images where id='$_GET[id]';";
$result = mysql_query($sql);
$row = mysql_fetch_array($result)
$name = $row['image']; // the name of the file that is downloaded
$FilePath = "upload"; // the folder of the file that is downloaded , you can put the file in a folder on the server just for more order
$size = filesize($FilePath . $name) ;
header("Content-Type: application/force-download; name=\"". $name ."\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ". $size ."");
header("Content-Disposition: attachment; filename=\"". $name ."\"");
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo (readfile($FilePath . $name));
?>