Location: PHPKode > scripts > wwdgallery > wwdgallery/image.php
//picks up query from engine.php
if($id) {
@MYSQL_CONNECT("localhost","user","password"); //edit here
$query = "SELECT file,file_name,file_size,file_type FROM your_table WHERE id LIKE '$id'";//edit here
$result = @mysql_query($query);//do not change these lines unless your fields are called something different to file, file_name etc.
$data = @mysql_result($result, "file");
$name = @mysql_result($result, "file_name");
$size = @mysql_result($result, "file_size");
$type = @mysql_result($result, "file_type");
Header( "Content-type:image/.jpg");//this is to make sure the header works on mac internet explorer - if you use gifs instead, change to .gif
echo $data;//displays thumbnail
Return current item: wwdgallery