image and .doc files,
<?php
$link = mysql_connect("*********", "ninag", "h0r$e$");
if (!$link)
die("Couldn't connect to MySQL");
$database ="ninag";
mysql_select_db($database) or die ("Couldn't open database);
$query = "INSERT INTO details(name, title) values($author, $title);
mysql_query($query)
or die("Couldn't submit details".mysql_error());
<form name="BookDetails" method="post" action="" enctype="multipart/form-data">
<table width="75%" border="0" height="126">
<tr>
<td height="62" valign="top"><font color="#000000">Please select file
for upload:</font></td>
<td width="203" valign="top"><font color="#000000">
<input type="file" name="file">
</font></td>
<td width="139" valign="top">
<input type="submit" name="Upload" value="Upload">
</td>
</tr>
<tr>
<td height="68" width="186"></td>
</tr>
</table>
<p align="left"> </p>
</form>
mysql_close($link);
?>