hey again...
thanks for all the help, after sitting here and reading what you had to say, and going over my code countless times, i finally clued in to what was going on, and why i was having errors. i got it working, it works perfectly... heres the finished version....
<?
if (isset($POST['submitcd'])) {
mysql_connect ("", "", "");
mysql_select_db ("board");
$fullpath = "/cds/".$FILES['image']['name'];
$abspath = "/home/scottay/www/cds/";
if(!(copy($FILES['image']['tmp_name'], $abspath.$FILES['image']['name']))) die("Cannot upload files.");
mysql_query ("insert into reviews (user, band, title, label, review, favsong, cover, year, rate) VALUES ('" . $SESSION['userinfo']['username'] . "', '" . $POST['band'] . "', '" . $POST['title'] . "', '" . $POST['label'] . "', '" . $POST['review'] . "', '" . $POST['favsong'] . "', '" . $fullpath . "', '" . $POST['year'] . "', '" . $POST['rate'] . "')") or die(mysql_error());
};
?>
just for an added feature, how would i go about adding a file size quota and file type restrictor?
say for maybe 100k and only jpg, gifs, jpegs are allowed?
also, if a user doenst have a cover to upload, how can i get around that so a default "no cover available" picture will be displayed?