Только то что в google нашёл: Вот......
<form name="form1" method="post" action="add1.php">
<p>
Товар
<input type="text" name="name" size="50">
</p>
<p>
Фото
<input name="myfile" type="file">
</p>
<p>
<input type="submit" name="submit" id="submit" value="Добавить">
</p>
</form>
<?
require_once("base.php");
if (isset($_POST['name'])) {$name = $_POST['name'];}
if (isset($_POST['myfile'])) {$myfile = $_POST['myfile'];}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
<?php
if (isset($name) && isset($myfile))
{
$result = mysql_query ("INSERT INTO page (id, name,myfile) VALUES ('id','$name', '$myfile' )");
?>