|
|
|
|
Çý¸² / 2001-03-27 / ¿ÀÈÄ 8:24:40 / 211.61.27.229
Á¶È¸¼ö : 150
|
[Áú¹®] ¾Èº¸¸é ¹Ì¿öÇÒ²¿¾ß!~~~yl |
µÎ°¡Áö °Ë»öÁ¶°ÇÀ» ¸¸Á· ½ÃÅ°´Â °Ë»ö °á°ú¸¦ ¾ò°í ½ÍÀºµ¥,
Áö°¡ ¿ö³«ÀÇ ÇãÁ¢À̶ó Èûµé±º¿©,,,
°í¼ö´Ôµé µµ¿ÍÁÖ¼¼¿ä...¤Ð.¤Ð
*************** search.asp
<select name="search">
<option value="name">À̸§º°·ç.</option>
<option value="content">Á÷¾÷º°·ç</option>
</select>
<select name="search1">
<option value="adr">ÀåÇõ </option>
<option value="adr">¿ì¼º</option>
<option value="adr">ÁöÇö</option>
<option value="adr">µ¿°Ç</option>
</select>
<input type="text" name="SearchString">
*************search_result.asp
<%
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
%>
´ë·« ÀÌ·¸°Åµç¿©...
À߸øµÈÁÙ ¾ËÁö¸¸ ¾îµô ¾î¶»°Ô ¼öÁ¤ÇØ¾ß ÇÒÁö ¸ð¸£°Ù¾î¿©
°í¼ö´Ô´ú ²À ºÎŹµå¸³´Ï´Ù...
|
|
|
|