<?
if ($submit) {
$connection = mysql_connect("localhost", "", "")
or die ("Couldn't connect to server.");
$db = mysql_select_db("client", $connection)
or die ("Couldn't select database.");
$filename = ("image" . $id . ".jpg");
copy($image, "/path/pics/$filename");
$filesize=filesize($image);
$filetype=filetype($image);
mysql_query("INSERT INTO inventory VALUES
('$id', '$trailertype', '$info', '$filename', '$filesize', '$filetype', '$description', '$pulltype', '$size', '$weight', '$price')") or die (mysql_error());
echo "