I think data is not fetching properly.
##########-Try the following -########
#!/usr/bin/perl
use DBI;
print "Content-type : text/htmlnn";
#print "Content-type : image/gifnn";
$dbh=DBI->connect('dbi:mysql:database','usr','pwd');
$sql="select * from $table where id=1";
#print "Database Connected<br>n";
$sth = $dbh->prepare($sql);
$rv = $sth->execute;
@row = $sth->fetchrow_array;
print $row[1];
#picture1 field
#if ($rv==0){
#print "No Recordsn";
#}else{
#while(@row = $sth->fetchrow_array) {
#print "Picture :".$row[1]."<br>n";
#}
}
if it is working properly.then remove html header and use image header.
Good Luck!!
------------------
SR -
shiju.dreamcenter.net
"The fear of the LORD is the beginning of knowledge..."