title: error in image_address and name insertion in mysql
body: <p>i use this code for insert data in mysql but it directly shows error
  " Could not enter data: "......         </p>
  
  <p>else </p>
  
  <pre><code>        {
  
              $image=$_FILES['img']['name'];
              $tmp_name=$_FILES['img']['tmp_name'];
  
              $path= "/var/www/html/uploads/".$image;
              if(move_uploaded_file($name,$path))
  
              {
              $sql = "INSERT INTO form1 ". "(fname,lname,username,password,age,email,branch,college,
              gender,image_p,) ". "VALUES('$fname','$lname','$username','$password','$age','$mail','$branch','$college','$gender','$image')";
              $retval = mysql_query( $sql, $conn );
              }
  
              if(! $retval ) 
              {
              die('Could not enter data: ' . mysql_error());
              }
              else
              {
              echo "Entered data successfully\n"."\n ";
              echo "you are now a registered user.";
  
              mysql_close($conn);
              }
  </code></pre>