dear i am fasing problem in uploading files,uploading file is properly working in local host but when i upload the file its not working through admin area the condition is giving false and excute else statement kindly help me on it
if($_REQUEST['action']=="addwall")
{
$cat=$_REQUEST['category'];
$sub=$_REQUEST['subcategory'];
$folder="wallpapers/";
$path=$folder.$_FILES['file']['name'];
if(move_uploaded_file($_FILES['file']['tmp_name'],$path))
{
mysql_query("insert into `wallpap`(`category`,`subcategory`,`image`) values('$cat','$sub','$path')") ;
//echo "<script>window.location='wallpapers.php'<///script>";
$msg="RECORD HAS BEEN ADDED !";
}
else
{
echo "error()";
}
}