";
if($newuser == '') {
mysql_query("INSERT INTO asset (bar_code, name,creation_date,serial,model,brand,owner,form,use1,notes,os,pdate,produkey,createdby,funding,vendor,cost,custom1,custom2) VALUES('$bar_code', '$f_name', '$today','$serial','$model','$brand','$owner','$form','$use1','$notes','$os','$pdate','$produkey','$myusername','$funding','$vendor','$cost','$custom1','$custom2') ")
or die(mysql_error());
}
else{
echo ' New User Added: '; echo $newuser;
mysql_query("INSERT INTO asset (bar_code, name,creation_date,serial,model,brand,owner,form,use1,notes,os,pdate,produkey,createdby,funding,vendor,cost,custom1,custom2) VALUES('$bar_code', '$f_name', '$today','$serial','$model','$brand','$newuser','$form','$use1','$notes','$os','$pdate','$produkey','$myusername','$funding','$vendor','$cost','$custom1','$custom2') ")
or die(mysql_error());
mysql_query("INSERT INTO users (uname) VALUES('$newuser') ") or $mysql_error = 1;
echo "
";
};
echo '
';
//Check if image is blank, if it is do not insert into the Table for images
if ($image == ""){
$image = "";
}
else {
mysql_query("INSERT INTO images (serial, imagename) VALUES('$serial', '$image') ") or die(mysql_error());
}
echo "