I think Misha means how to store the binary data from images in a database, not there path
First of all, you need to have a colum with data type BLOB (for the binary data)
When you upload a file, it is saved as a temperary file in the tmp directory of the server, the name of the temp file is stored into the variable with the name of your file tag, if there is nothing uploaded, the variable will contain 'none'
i.e.:
<file name="myfile">
<?
if ($myfile!='none') {
$fp=fopen($myfile,'r');
$bin_myfile=addslashes(fread($fp,filesize($myfile)));
fclose($fp);
}
what I do is reading the temp file and putting it in a variable
now you can use this variable in your query
i.e.:
INSERT INTO images SET image='$bin_myfile'
if image is your colum with datatype BLOB..
hope this helps,
Bruno