I appreciate your response.
What I'm trying to do now is retrieve the image from $_FILES, switch the directory, then store the name in a variable, then send it to MySQL.
Basically - the user uploads an image on one page, you get directed to another, the pages says "1 pictured added to DB", and the picture is resaved to my folder with the name stored in my MySQL
The code for my welcome page is
$destination='C:\xampp\htdocs\PHPProject1\\'."\\".$_FILES['pix']['name'];
$temp_file= $_FILES['pix']['tmp_name'];
move_uploaded_file($temp_file, $destination);
$img= $_FILES['pix']['name'];
$con=mysqli_connect("***","***","***","test");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($con,"INSERT INTO pix (ID,Name, type)
VALUES (null, $img, null)");