/beta/accounting/xml_CustomerAccount.asp

http://github.com/khaneh/Orders · ASP · 29 lines · 25 code · 2 blank · 2 comment · 3 complexity · 1de68d3cffbaf530719e1c871a5783f1 MD5 · raw file

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%>
  2. <!--#include file="../config.asp" -->
  3. <%
  4. ErrorFound=False
  5. ON ERROR Resume Next
  6. ID=clng(request("id"))
  7. if Err.Number<>0 then
  8. Err.clear
  9. ErrorFound=True
  10. end if
  11. ON ERROR GOTO 0
  12. if NOT ErrorFound then
  13. 'Changed by Kid ! 831125
  14. 'Considering Status <> 3 (3=Account is Blocked)
  15. sql="SELECT AccountTitle From Accounts WHERE ID="& ID & " AND Status <> 3"
  16. set rs=Conn.Execute(sql)
  17. if (rs.EOF) then
  18. response.write escape (" " )
  19. else
  20. response.write escape( rs("AccountTitle") )
  21. end if
  22. rs.close
  23. else
  24. response.write escape (" " )
  25. end if
  26. conn.close
  27. %>