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()";
}
}
Member Avatar for diafol

show your form code.

I doesn't understand what are you trying to say

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.