%
Dim oConn, RecEditText, fldCur, PropertyID, SQL
Set oConn = server.createobject("ADODB.Connection")
oConn.Open Application("ConnStrHome")
PropertyID = Trim(Request.QueryString("PropertyID"))
Set RecEditText = Server.CreateObject("ADODB.Recordset")
Set fldCur = Server.CreateObject ("Scripting.Dictionary")
If PropertyID <> "" Then
SQL = "SELECT * FROM Property WHERE PropertyID = "&PropertyID&" "
'SQL = "FROM PropertyType INNER JOIN Property ON PropertyType.PropertyID = Property.PropertyID "
RecEditText.Open SQL, oConn
If Not RecEditText.EOF Then
For Each fld in RecEditText.Fields
fldCur(fld.Name) = RecEditText(fld.Name)
Next
End If
RecEditText.Close
Set RecEditText = Nothing
End If
%>
<%
Function AddBrToCrLf(strInput)
If Trim(strInput) <> "" Then
AddBrToCrLf = Replace(strInput, vbCrLf, " " & vbCrLf)
Else
AddBrToCrLf = strInput
End If
End Function
%>
Home Equity : Total relocation services for expatriates to Singapore including pre-move, actual home search and back-up service during tenancy. Contact us for your relocation needs or queries.
<%
If PropertyID <> "" Then
Dim RecImage, SQLImage
Set RecImage = Server.CreateObject("ADODB.Recordset")
SQLImage = " SELECT * FROM Images WHERE PropertyID = "&PropertyID&""
RecImage.Open SQLImage, oConn, 3, 3, 1
If Not RecImage.EOF Then
%>
<%
End If
RecImage.Close
Set RecImage = Nothing
End If
%>
Project :
<%=fldCur("Name")%>
Type :
<%
If PropertyID <> "" Then
Set RecType = Server.CreateObject("ADODB.Recordset")
SQLType = "SELECT * FROM PropertyType WHERE PropertyTypeID = "&fldCur("PropertyTypeID")&""
RecType.Open SQLType, oConn
If Not RecType.EOF Then
%>
<%=RecType("PropertyTypeName")%> <%If RecType("SaleRent") <> "" Then%>(For <%=RecType("SaleRent")%>)<%End If%>
<%
End If
RecType.Close
End If
Set RecType = Nothing
%>