| |
 |
 |
| |

Please select the details you would like to edit.
[Password] [Contact
Details] [Property]
[Photographs]

Your Property ID: CR<%=(rs_listing.Fields.Item("PID").Value)%>
You Have <%=((rs_images_total) + 1) %> out of a possible 10 Images Uploaded.

[Change My Image
Positions]
<% if request.querystring("action") = "" then %><%
Set Upload = Server.CreateObject("Persits.Upload")
Upload.OverwriteFiles = False
' Capture files
Upload.Save "d:\inetpub\wwwroot\capital-residence.com\upload"
' Obtain file object
Set File = Upload.Files("theImage")
If Not File Is Nothing Then
' Build ODBC connection string
Connect = "Driver={Microsoft Access Driver (*.mdb)};DBQ=d:\datastore\capital-residence\capres.mdb"
' Build SQL INSERT statement
'SQL = "INSERT INTO theImages(filename, description, owner, filesize) VALUES('"
'SQL = SQL & File.Filename & "', '"
'SQL = SQL & Replace(Upload.Form("theDescription"), "'", "''") & "', "
'SQL = SQL & Replace(Upload.Form("theOwner"), "'", "''") & "', "
'SQL = SQL & File.Size & ")"
' Build SQL INSERT statement
SQL = "INSERT INTO theImages(filename, description, owner) VALUES('"
SQL = SQL & File.Filename & "', '"
SQL = SQL & Replace(Upload.Form("theDescription"), "'", "''") & "', "
SQL = SQL & Replace(Upload.Form("theOwner"), "'", "''") & ")"
' Save to database
File.ToDatabase Connect, SQL
Response.Write "File saved to database. You must now choose a position for your image. Click on 'Change My Image positions' above."
Else
Response.Write "Error: File not Selected/Saved."
End If
%><% end if %>
If you have problems uploading images please contact
us for help. support@capital-residence.co.uk
|
|