First of all, I think the correct way to write your directory on a windows system is
c:\apache\htdocs......\
NOT
c:/apache/htdocs/../../../
If that does not help you, why don't you try COPY function instead of EXEC.
if ($submit) {
$db = mysql_connect("$localhost","$pd06975","$pc6975wa");
mysql_select_db("$joesauto",$db);
$sql = "INSERT INTO joesauto (year,make,model,price,picture_name) ".
"VALUES ('$year','$make','$model','$price','$picture_name')";
// define directory
$dir = 'c:\apache\htdocs\joesauto\images\';
$dir .= $picture_name;
// upload picture file
if( copy($picture, $dir) )
echo '<b>File Successfully copied</b>';
else
echo '<b>Error: Unable to upload file.</b>';
// destory file
unlink($picture);
echo "Year: $year<br>\n";
echo "Make: $make<br>\n";
echo "Model: $model<br>\n";
echo "Price: $price<br>\n";
echo "Temp file: $picture<br>\n";
echo "File Name: $picture_name<br>\n";
echo "File Size: $picture_size<br>\n";
echo "<br>\n";
echo "<img src=images/$picture_name><br>\n";
}