|
|
|
|
Dune / 2001-03-28 / ¿ÀÀü 11:58:18 / 211.238.54.100
Á¶È¸¼ö : 130
|
[Áú¹®] ¾Èº¸¸é ¹Ì¿öÇÒ²¿¾ß!~~~yl |
> <%
> search = request("search")
> search1= request("search1")
> SearchString =request("SearchString")
>
> Set db = Server.CreateObject("ADODB.Connection")
> db.Open("MySiteDB")
>
> ' if search = "content" and search1 = "adr" then
> ' SQL = "SELECT * FROM MyBoard2 where content and adr like '%"
> & SearchString & "%' "
> ' SQL = SQL & " ORDER BY num DESC"
> ' elseif search ="name" and search1 = "adr" then
> ' SQL = "SELECT * FROM MyBoard2 where name and adr like '%" &
> SearchString & "%' "
> ' SQL = SQL & " ORDER BY num DESC"
>
> ' end if
>
> SQL = "SELECT * FROM MyBoard2 where " & search & " + " &
> search1 & " like '%" & SearchString & "%' "
>
> SQL = SQL & " ORDER BY num DESC"
>
> Set rs = Server.CreateObject("ADODB.Recordset")
> rs.Open SQL,db,1
> %>
> ´ë·« ÀÌ·¸°Åµç¿©...
> À߸øµÈÁÙ ¾ËÁö¸¸ ¾îµô ¾î¶»°Ô ¼öÁ¤ÇØ¾ß ÇÒÁö ¸ð¸£°Ù¾î¿©
> °í¼ö´Ô´ú ²À ºÎŹµå¸³´Ï´Ù...
============================================
¼Ò½º¸¦ º¸¾ÆÇÏ´Ï Å¿ä´Ô Ã¥À» º¸½Å°Å °°±º¿ä *^^*
È÷È÷~
Áß°£ ºÎºÐÀº ¸ð¸£°Ú±¸¿ä
SELECTºÎºÐ Á¶°Ç ÁÖ´Â ºÎºÐÀÖÁÒ?
°Å±â¼ °Ë»öÁ¶°ÇÀ» À߸ø °ÔÁ¦ÇϽŠ°Å °°Àºµ¥¿è
and ¹®ÀÌ ºüÁø°Å °°Àºµ¥ ...¾Æ´Ñ°¡?
==============================
À̸§°Ë»öÁ¶°Ç and Á÷¾÷°Ë»öÁ¶°Ç
============================== |
|
|
|