hmm
You want the image into some folder and the name in the database right?
well when you submit some form with a image you could use this:
$copy $image ("image/folder/$image_name");
the image would be uploaded into some folder and the image name in the mysql
$sql("INSERT INTO news $Image, $text($image_name,$text));
and the name of the picture is stored in the mysql as "image" namedfield...
So when you want then to spit out news or something you would do:
Print ("<img scr="image/folder/$image");