adamsoderqvist
Programmer
Hi,
I have an SQL string saying:
[
Dim strSQL
strSQl = "SELECT * FROM tblMembers WHERE Message LIKE '%" & strSearchText & "'% ORDER BY PostDate"
]
Now, when I send this to another page using the query string, it returns: (on the new page)
[
"SELECT * FROM tblMembers WHERE Message LIKE ' (some crazy character...) ' ORDER BY PostDate"
]
This is fixed with the "Server.URLEncode"-command, I know, but how do I use it so that the outcome of my select-statement will be the same as intended?
I've tried, but don't seem to reach a good result...
I have an SQL string saying:
[
Dim strSQL
strSQl = "SELECT * FROM tblMembers WHERE Message LIKE '%" & strSearchText & "'% ORDER BY PostDate"
]
Now, when I send this to another page using the query string, it returns: (on the new page)
[
"SELECT * FROM tblMembers WHERE Message LIKE ' (some crazy character...) ' ORDER BY PostDate"
]
This is fixed with the "Server.URLEncode"-command, I know, but how do I use it so that the outcome of my select-statement will be the same as intended?
I've tried, but don't seem to reach a good result...