try the move_uploaded_file() function to save the file into your directory and create a variable that will create a path to your file in the directory that will be used to store the path in mysql.
it goes something like this..
<?
move_uploaded_file($_FILES['file']['tmp_name'],$newimage);
$ewan="../photoupload/";
$ewanko=$ewan . $newimage;
$query="insert into test1 set title='" .$_POST['textfield']. "',path='$ewanko',memid='$memid'";
mysql_query($query);
}
?>
definitely base on your title you cant use mysql to move your file in the directory. but in php its posible, like ryan was posted..
and the use of mysql there is to save other information in the database
like Description, ImageName, Id, ForeignID etc..