I am a Beginner in PHP and i want to Upload image via PHP and want to save it in destination folder.

i will show you the correct path of the folder where i want the image to be saved, but its only getting saved in database and the image file is not getting save in folder.

The code is as follows:

```
<?php
if (isset($_POST['submit']))
    {
        include ('dbconfig.php');

        $image=$_FILES['image']['name'];
        $name=$_POST['name'];
        $detail=$_POST['des'];

        if($image!=null)
            {
                move_uploaded_file($_FILES['image']['tmp_name'],"/Tomar/php/a/uploads/".$_FILES['image']['name']);
            }

    $entry = "INSERT INTO aboutstudent(stuimg, stuname, studetail) VALUES ('$image','$name','$detail')";
    $result = mysql_query($entry); 
    }
?>

```

and i want to save my images at below path:

```
D:/wamp/www/Tomar/php/a/uploads

```