hi
If the user changes his photo i want the else to work.if u the does not change his old photo i want the if to work.but my below code is not working like that....only the if part is working
if(isset($_REQUEST["update"]))
{
$uploadedfile=$_REQUEST['uploadingfile'];
$upload="comphoto"."/". $_FILES['uploadingfile']['name'];
$filename=$_FILES['uploadingfile']['name'];
echo $filename;
move_uploaded_file($_FILES['uploadingfile']['tmp_name'],$upload);
if($filename!="NULL" || $filename!="FALSE" || $filename!="")
{
$res=$db->upcommunity($user_id,$name1,$desc,$upload,$username,$password);
}
else
{
$res=$db->upcommunity1($user_id,$name1,$desc,$username,$password);
}
}