HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/groundscrewcentre/postcode-test.asp
<%Option Explicit%>
<!--#include file="dbfunctions.asp"-->
<!--#include file="apputils.asp"-->
<html>
<head>
<title>Postcode Test</title>

</head>

<body>


<%

PostCodeTest3


Sub PostCodeTest1
  OpenQuery("SELECT * FROM pc_outward_list2")
  Dim LOutwardCode
  Do While Not EndOfQuery
    LOutwardCode = GetQueryValue("OutwardCode")
    
    
    If Not GetSQLRecordExists("SELECT * FROM delivery_postcodes WHERE CONCAT(',', PostcodeList, ',') LIKE '%," & LOutwardCode & ",%'") Then
      Response.Write LOutwardCode & "<br>"
    End If
    
    NextQueryRecord
  Loop
  CloseQuery
End Sub

Sub PostCodeTest2
  Response.Write "PostCodeTest2" & BR
  Const POSTCODE = "IV28 3AB"
  Response.Write "GetDeliveryRegionFromPostcode(""" & POSTCODE & """) = " & GetDeliveryRegionFromPostcode(POSTCODE) & BR
End Sub

Sub PostCodeTest3
  Response.Write "PostCodeTest3" & BR
  Const POSTCODE = "HS47 3AB"
  Response.Write "GetDeliveryRegionFromPostcode(""" & POSTCODE & """, ""Pallet"") = " & GetDeliveryRegionFromPostcode(POSTCODE, "Pallet") & BR
End Sub

%>

</body>
</html>
<%Finalise%>