Instead of avlink=="" try
if($avlink==""||ceil(filesize($avlink)/1024)<1){
...
}
dat way, if file dnt exist, it stil shows the nopic.jpg file.
					if($avlink==""||ceil(filesize($avlink)/1024)<1){
...
}
dat way, if file dnt exist, it stil shows the nopic.jpg file.

 i ended my chapel-deluxe at late..too tired..only now i see a little error 
this code is good but don't works
Comment