connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME, true)) $dao->print_last_error(false); $DT_Acc=$_GET['DT_Acc']; //$DT_Acc="ekin22"; $Sql="Select * from AVA_Disti where DT_Acc='".$DT_Acc."' and DT_DelFlag='N'"; $dao->select($Sql); if ( $dao->row_count !='0' ) { echo "1"; }else{ echo "0"; } $dao->end_db; ?>