У меня одна проблема с базой данных, если мой sql такой:
Dim Username
Username = request.form(trim("username"))
Username = Replace(username,"'","''")
Dim email
email = request.form(trim("email"))
email = Replace(email,"'","''")
Dim question
question = request.form(trim("question"))
question = Replace(question,"'","''")
Dim answer
answer = request.form(trim("answer"))
answer = Replace(answer,"'","''")
Dim date_answered
dag = Day(Now())
maand = Month(Now())
jaar = Year(Now())
uur = Hour(Time)
minuten = Minute(Time)
seconden = Second(Time)
datum= jaar & "-" & maand & "-" & dag
tijd = uur & ":" & minuten& ":" & seconden
date_answered = (datum & " " & tijd)
Dim isActive
isActive = "yes"
sql="UPDATE faqtbl SET "
sql=sql & "Name='" & username & "',"
sql=sql & "email='" & email & "',"
sql=sql & "question='" & question & "',"
sql=sql & "answer='" & answer & "',"
sql=sql & "date_answered='" & date_answered & "',"
sql=sql & "isActive='" & isActive & "'"
sql=sql & " WHERE ID='" & lngRecordNo &"';"
on error resume next
Нет никаких проблем, пока данные, которые я хочу добавить в базу данных, не используют двойные кавычки.
Пожалуйста, помогите, как я могу манипулировать запросом с помощью двойных кавычек?
спасибо ..:)