|
|
|
|
food / 2000-12-14 / ¿ÀÈÄ 3:05:40 / 210.219.185.189
Á¶È¸¼ö : 122
|
[Áú¹®] ¿¡·¯±¸¹®Àε¥ ¾î¶»°Ô ó¸®ÇØ¾ß µÉÁö6 |
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'like'.
/members/search_result.asp, line 16
<%
search = request("search")
SearchString =request("SearchString")
Set db = Server.CreateObject("ADODB.Connection")
db.Open ("DSN=sql;UID=sa;PWD=")
if search = "fallname" then
SQL = "SELECT * FROM home where fallname like '%" & SearchString & "%' "
SQL = SQL & " ORDER BY num DESC"
elseif search = "id" then
SQL = "SELECT * FROM home where id like '%" & SearchString & "%' "
SQL = SQL & " ORDER BY id DESC"
end if
SQL = "SELECT * FROM home where " & search & " like '%" & SearchString & "%' "
SQL = SQL & " ORDER BY id DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open SQL,db,3
%>
|
|
|