Thank you so much, i managed to solve that with your help.
I am now recieving the following error and not sure what it means:
Error, query failed : Unknown column 'name' in 'field list'
below is the query I am using:
$query = "INSERT INTO upload2 (name, size, type, path ) ".
"VALUES ('$fileName', '$fileSize', '$fileType', '$filePath')";