|
|
|
|
俵ÀÌ / 2000-12-14 / ¿ÀÈÄ 4:20:46 / 203.255.3.190
Á¶È¸¼ö : 128
|
[Áú¹®] ¿¡·¯±¸¹®Àε¥ ¾î¶»°Ô ó¸®ÇØ¾ß µÉÁö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
> %>
>
>
-----------------------------------------------------------
search³ª SearchString¿¡ ¿Ã¹Ù¸¥ °ªÀÌ ³Ñ¾î¿À´ÂÁö üũÇØ º¸¼¼¿ä~~ ^^
±×·³...
|
|
|
|