%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
|
CopRice Speciality Products Stockists <% set validate = createobject("SecurityCOM.Validation") ' Declare variables Dim rstStockist ' ADO recordset Dim strSQL ' String in which to build our SQL command Dim lngRecsAffected ' # of records affected... just informational Dim strName Dim strAddress Dim strTown Dim strState Dim strPostCode Dim strPhone ' Build SQL String strSQL = "" strSQL = strSQL & "SELECT Name, Address, Town, State, PostCode, Phone FROM Stockist" strSQL = strSQL & " WHERE State = 'SA'" strSQL = strSQL & " ORDER BY Town Asc, Name Asc" 'Open recordset and execute SQL Set rstStockist = Server.CreateObject("ADODB.Recordset") rstStockist.Open strSQL, _ Application("DBConnectionString") %>
|
||||||