}else{
move_uploaded_file($_FILES['filename']['tmp_name'], "/authors".$filename);
$query = mysql_query("INSERT INTO authors VALUES('','$name','$id-$filename')")or die(mysql_error());
}
INSERT INTO authors (field1, field2, field3) VALUES('test1','$name','$id-$filename')
"