Forum Moderators: coopster
I am able to get the picture uploaded, I just need some help with the thumbnail part. Here's what I have so far. (The database part is used to store how many images are in there so the next file name can be figured out.)
(php)
<?
if(isset($submit)){
if (is_uploaded_file($_FILES['upfile']['tmp_name'])){$result=mysql_query("SELECT * FROM images");
$id=mysql_num_rows($result);
$id++;
$file_realname = "image".$id.".gif";copy($_FILES['upfile']['tmp_name'], "/usr/www/etc/img/uploads/$file_realname");
$q = "INSERT INTO images (id, file) VALUES ('', '$file_realname')";
mysql_query($q);echo "$upfile_name uploaded successfully.";
} else {
echo "No file uploaded";
}}
?>
Good luck! When implemented, it a very nice tool.