ok,
create a table in your db, something like this:
create table images (image_id integer primary key auto_increment,
image blob,
image_name varchar(20),
image_size integer,
image_type varchar(20));
above will be the table in your db to hold the images in it, and their info.
and then in your form, from where you will submit the image, can be something like this:
sumitimage.php
<?php
if ($submit) {
if ($REQUEST_METHOD == 'POST') {
// just do the insert to your table in db
// with something like below ...
$sql = 'INSERT INTO image (image, image_name,
image_size, image_type)
VALUES ('$userfile', '$userfile_name', '$userfile_size', '$userfile_type')
// do the normal db stuff, i.e. connection
// querying etc.. and then close
}
else {
echo 'illegal request!';
}
}
?>
<form ACTION="<?php echo "$PHP_SELF"; ?>" METHOD="POST">
<INPUT TYPE="file" NAME="userfile">
<INPUT TYPE="submit" VALUE="Submit">
</FORM>
thats it!
Daarius ...