session_start(); if ($accesso=='on') { include("../config.php"); if ($foto!='nofoto.gif') { unlink("./../../public/news/".$foto); } if ($foto_home!='') { unlink("./../../public/news/".$foto_home); } $sql="DELETE from ".$news." where (id_news = '$id')"; if(!($result=mysql_query($sql,$conn))) { echo ("Error selecting data from news table.\n"); }else{ echo ("\n"); } mysql_close($conn); echo "