in reply to insert file into mysql

I think you're looking to collect a piece of textual information in addition to binary data from a file. The first thing you're gonna need to be sure of is that your table is setup correctly. Presumably, you're going to need a sort of TEXT field for the address, and you're gonna need a BLOB for the binary data.

The HTML is gonna need to be setup something like this:
<form action="http://www.site.com/path/to/script.pl" method=POST ENCTY +PE="multipart/form-data"> Address: <input type="text" name="address"><br> File: <input type="file" name="file"><br> <input type="submit"></form>
The Perl code is going to probably be something like this:
#!/usr/bin/perl use strict; use CGI; use DBI; my $cgi = new CGI; my $dbh = DBI->connect("DBI:mysql:dbname:localhost","username","passwo +rd"); my $fh = $cgi->upload('file'); my $data; $data .= $_ while <$fh>; my $p = $dbh->prepare("insert into `tablename` (`address`,`data`) valu +es (?,?)"); $p->execute($cgi->param('address'), $data); $p->finish; $dbh->disconnect;
Although this is rather basic (and untested!!), I hope it leads to an eventual solution to your problem, of course, assuming that I am understanding it correctly :-).

Best, and good luck!
  -Adam

--
By a scallop's forelocks!