|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
What should i change in this script to get it working?
line 159----->> strSQL = "UPDATE Results SET " _
& "Name = '" & CStr(Replace(Request.Form("Name"), "'", "''")) & ", " _ & "Street = " & CInt(Replace(Request.Form("Street"), "'", "''")) & ", " _ & "contactinfo_Address2 = '" & CInt(Replace(Request.Form("contactinfo_Address2"), "'", "''")) & ", " _ & "City = " & CInt(Replace(Request.Form("City"), "'", "''")) & ", " _ & "County = " & CInt(Replace(Request.Form("County"), "'", "''")) & ", " _ & "Postcode = " & CInt(Replace(Request.Form("Postcode"), "'", "''")) & ", " _ & "Nationality = " & CInt(Replace(Request.Form("Nationality"), "'", "''")) & ", " _ & "homePhone = " & CInt(Replace(Request.Form("homePhone"), "'", "''")) & ", " _ & "MobilePhone = " & CInt(Replace(Request.Form("MobilePhone"), "'", "''")) & ", " _ & "Email = " & CInt(Replace(Request.Form("Email"), "'", "''")) & ", " _ & "singlestatus = " & CInt(Replace(Request.Form("singlestatus"), "'", "''")) & ", " _ & "Interests = " & CInt(Replace(Request.Form("Interests"), "'", "''")) & ", " _ & "username = " & CInt(Replace(Request.Form("username"), "'", "''")) & ", " _ & "password = " & CInt(Replace(Request.Form("password"), "'", "''")) & ", " _ & "WHERE (ID = " & iRecordID & ")" Microsoft VBScript runtime error '800a000d' Type mismatch: 'CInt' /admin/edit.asp, line 159 Thanks all...Again!! Steve |
|
#2
|
||||
|
||||
|
It appears that you're using CInt on text fields. For example: street, address2, city, county, etc.
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#3
|
|||
|
|||
|
So that should be CStr instead of CInt?
Thanks for reply, Steve |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > What should i change in this script to get it working? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|