Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp´úÂ룬accessÊý¾Ý¿â£¬²éѯÎÊÌâ

Êý¾Ý¿â±íÃûΪ£ºtable1
ÆäÖÐÒ»¸ö×Ö¶ÎÃûΪ£ºname1

name1 ÖÐÄÚÈÝ¿ÉÄÜÊÇ£ºÄã ºÃ
×¢£º¡°ÄãºÃ¡±ÕâÁ½¸ö×ÖÖмäµÄ¿Õ¸ñ²»ÄÜÈ·¶¨¶àÉÙ¸ö

ÇëÎÊÔõô²ÅÄܵ±ÊäÈë¡°ÄãºÃ¡±ÕâÁ½¸ö×ÖµÄʱºò£¬¿ÉÒÔ²éѯ³öº¬ÓС°Äã  ºÃ¡±µÄ¼Ç¼ÄØ

keyw="ÄãºÃ"
sql="select * from table1 where name1='"&keyw&"' order by id"


ÇëÎÊÉÏÃæÕâ¾ä»°Ôõô¸Ä²ÅÄÜÕýÈ·²éѯ³öÀ´ÄØ£¿£¿

×¢£ºÕâÑùдÊDZ¨´íµÄ£ºsql="select * from table1 where replace(name1,' ','')='"&keyw&"' order by id"


²»ÖªÂ¥Ö÷µÄÒâ˼ÊDz»ÊǶà¹Ø¼ü×Ö¸´ºÏ²éѯ ¡£¡£
Äã¿ÉÒÔÏȶ¨Òå¹Ø¼ü×ÖÊäÈ뷽ʽ ÿ¸öÖ®¼äÓà , »òÕß | ·Ö¸î .. È»ºóÄã»ñÈ¡µÄʱºò split  ·Ö¸îһϠ£¡
aa = split(»ñÈ¡µÄÖµ£¬"¶¨ÒåµÄ·Ö¸î·û")
È»ºó
sql="select * from table1 where 1=1"

for i=0 to UBound(aa)
  sql = sql&" and name1 like '%"&aa(i)&"'%"
next

sql = sql&" order by..."

ÕâÑùÓ¦¸ÃÄÜʵÏÖÄãÒªµÄЧ¹û µ«ÓÐЩϸ½ÚÐèÒª´¦Àí ..ÄãÔÚ×ÐϸÑо¿Ò»Ï !

sql = sql&" and name1 like '%"&aa(i)&"'%"  Õâ¾ä»°ºóÃæÓ¦¸Ã¼Ó¸ö OR Ç°ÃæµÄAND Ò²Ó¦¸ÃÌáµ½ÉÏÃæ1=1 ÄÇÀï Âé·³¾ÍÔÚÕâÀï ÎÒ»èÁË Ä㻹ÇåÐÑ°É  .. ÄǾͽ»¸øÄãÈ¥×ö°É !

key = "ÄãºÃ"
keys = "%"
for i = 0 to len(key)
 


Ïà¹ØÎÊ´ð£º

asp³õѧÎÊÌâ¡£responseÕÒ²»µ½

<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'×¢Òâ±äÁ¿ ......

ASPα¾²Ì¬µÄÁíÀàÎÊÌâ

ÓÉÓÚ¶ÔÒ³ÃæʹÓÃÁËα¾²Ì¬
²¢ÇÒ¶ÔID½øÐÐÁ˼ÓÃÜ¡£
Ö÷Òª´úÂëÈçÏ£º
httpd.ini
RewriteRule /List-([0-9,a-z]*).html /List.asp\?ComId=$1 [N,I]

³ÌÐò´úÂë
AΪ¼ÓÃÜ£¬BΪ½âÃܺ¯Êý
<a href=&q ......

ASP FCKÔÚÏ߱༭Æ÷

ÓÐÄÄλ¸ßÊÖÓùýASP FCKÔÚÏ߱༭Æ÷ѽ£¬ËüÄǸöͼƬÉÏ´«¹¦ÄÜÔõôÅäÖÃѽ
ÄܸøÎÒ·¢¸öÄÜÓÃFCKÔÚÏ߱༭Âð£¿Ò»¶¨ÄÜÉÏ´«Í¼Æ¬¹¦ÄܵÄѽ£¬¼±Ñ½
Ö±½Óµ½¹Ù·½Íøվȥϸö¾Í¿ÉÒÔÁË£¬¹ØÓÚÉèÖÃô£¬Ö±½ÓGOOGLEÒ»ÏÂÄãµÄ°æ±¾ºÅ¾Í¿ÉÒÔÕÒµ ......

ÈçºÎÓÃASPÉú³É²úÆ·Ðû´«²á

ÎÒÕâ¶þÌìÔÚ¿¼ÂÇÕâ¸öÊÂ,ÓÐʲô°ì·¨,ÒòΪÎÒÕâ¸öÐÐÒµ,ÓÐЩ¿Í»§Ö÷¶¯ÒªÐû´«²á,ÎÒÔÚÏë,Äܲ»ÄÜÉú³ÉÒ»¸öµç×Ó°æµÄÐû´«²á.
ÆóÒµÍøվʵ¼ÊÉϾÍÊǵç×Ó°æµÄÐû´«²á

¾²Ì¬ÍøÒ³¾ÍºÃ

×î¼òµ¥µÄ°ì·¨.½«ÄãÏÖÓеÄÐû´«µ¥.ɨÖãºó´ò°ü·Å ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ