Удаление объявления  

Удаление объявления  "; if ($email&&$pass) : $email = strtolower(trim($email)); $passl = strtolower(trim($pass)); $aSQL = "select kategor, uid from N_ID where email='$email' and pass='$pass' "; $aqresult = @mysql_query( $aSQL); $resalt1 = mysql_num_rows($aqresult); if ($resalt1 != "1") : $text = "обьявления не существует"; else : if ( $seenform == "y") : while ($aRow = mysql_fetch_array( $aqresult) ) : $kategor = $aRow["kategor"]; $uid = $aRow["uid"]; endwhile; $aSQL = "delete from N_ID where uid='$uid' "; @mysql_query( $aSQL); $aSQL = "delete from $kategor where uid='$uid' "; @mysql_query( $aSQL); $aSQL2 = "delete from DU where uid='$uid' "; @mysql_query( $aSQL2); $apats = dirname( $PATH_TRANSLATED ); $t_name ="FOTO"."$uid"."_0"."."."jpg"; $anewname = "/home/dskaru61/public_html/uppics/" . $t_name; if (file_exists($anewname)) : unlink($anewname); endif; $t_name ="FOTO"."$uid"."_1"."."."jpg"; $anewname = "/home/dskaru61/public_html/uppics/" . $t_name; if (file_exists($anewname)) : unlink($anewname); endif; $t_name ="FOTO"."$uid"."_2"."."."jpg"; $anewname = "/home/dskaru61/public_html/uppics/" . $t_name; if (file_exists($anewname)) : unlink($anewname); endif; $apats = dirname( $PATH_TRANSLATED ); $t_name ="FOTO"."$uid"."_0"."."."gif"; $anewname = "/home/dskaru61/public_html/uppics/" . $t_name; if (file_exists($anewname)) : unlink($anewname); endif; $t_name ="FOTO"."$uid"."_1"."."."gif"; $anewname = "/home/dskaru61/public_html/uppics/" . $t_name; if (file_exists($anewname)) : unlink($anewname); endif; $t_name ="FOTO"."$uid"."_2"."."."gif"; $anewname = "/home/dskaru61/public_html/uppics/" . $t_name; if (file_exists($anewname)) : unlink($anewname); endif; $text = "Обьявление удалено"; endif; endif; else : if ( $seenform == "y") : if ($email == "") : $Femail = "red"; endif; if ($pass == "") : $Fpass = "red"; endif; endif; endif; ?>

   E-mail:    
   Пароль: