Board logo

¼ÐÃD: [±Ð¾Ç] (¹ê¾Ô±MÃD) ½u¤W°Q½×°Ï ¤W½g [¥´¦L¥»­¶]

§@ªÌ: ¤p»x    ®É¶¡: 2010-5-26 20:28     ¼ÐÃD: (¹ê¾Ô±MÃD) ½u¤W°Q½×°Ï ¤W½g

½u¤W°Q½×°Ï¡A¤]´N¬O©Ò¿×ªº¡yBBS¡z¡A¥»°Q½×°Ïªºµ{¦¡½s¼g¦³¤@©wµ{«×ªº¬D¾Ô©Ê¡A¤£¶È¶È¬OASPµ{¦¡ªº°ÝÃD¡AÁÙ¥]¬A¤FACCESS¸ê®Æ®w¡yÃöÁp©Ê¡zªº°ÝÃD¡I¥»³¹½d¨Ò¤¤¤p»x±N·|²³æªº»¡©ú¦p¦ó«Ø¥ß¸ê®Æªí¶¡ªºÃöÁp©Ê(¥u¤¶²Ð»P¥»³¹½d¨Ò¬ÛÃöªº³¡¤À¾Þ§@¡A¦Ü©ó¨ä¥L¸û²`¤Jªº³¡¥÷´N±o½Ð±z¦Û¦æ°Ñ¾\¬ÛÃö®ÑÄy¤F)¡A¨Ã¥B±NASPµ{¦¡ºô­¶°µ­«ÂI¬Oªº©î¸Ñ»P»¡©ú¡C


µ{¦¡¬yµ{
¥»°Q½×°Ïµ{¦¡½d¨Ò¦@¤À¬°¤­¤j³¡¤À¡A¤À§O¬O¡G

§@ªÌ: ¤p»x    ®É¶¡: 2010-5-26 20:33

¥D±q¸ê®ÆªíªºÄæ¦ì

¥D¼ÐÃD¸ê®Æªí
¦b¥D¼ÐÃD¸ê®Æªí¤¤¡A§Ú­Ì¥²¶·°t¦X°ÝÃD°Q½×¶µ¥Ø¦Cªíµ{¦¡ºô­¶Index.asp¥\¯àªí«Ø¥ß¥|­Ó°ò¦Äæ¦ì¡A¤À§O¬O¡G©m¦W¡B¥DÃD¡Bµo¨¥¤é´Á»P½g¼Æ¡C

[attach]960[/attach]

½g¼ÆÄæ¦ì¦s©ñªº¬O¸Ó¥DÃD°Q½×µo¨¥ªºÁ`½g¼Æ¡A¦ý¬O¨Ã¤£¥]¬A°Q½×¥DÃD¥»¨­¡C

¦P®É¡A°t¦X³æ¤@¥DÃD°Q½×¦Cªíµ{¦¡ºô­¶join.asp¤¤¡A¥²¶·Åã¥Ü­ì©l°Q½×¥DÃDªº¤º®e»Pµo°_°Q½×ªÌªº¹q¤l«H½c¡A©Ò¥HÁÙ±o¥[¤W¡yEmail¡z»P¡y¤º®e¡zÄæ¦ì¡G

[attach]961[/attach]

°£¦¹¤§¥~¡AÁÙ¦³¤@­Ó«D±`­«­nªºÄæ¦ì¡G¡y¥D½s¸¹¡zÄæ¦ì¡A³o¬O¥D¼ÐÃD¸ê®Æªí»P¦¸¼ÐÃD¸ê®Æªí²£¥ÍÃöÁp©ÊªºÃöÁäÄæ¦ì¡I¦]¦¹¡A§Ú­Ì¦b¥D¼ÐÃD¸ê®Æªí¤¤¤@¦@¥²¶·«Ø¥ß¤C­ÓÄæ¦ì¡A¥D¼ÐÃD¸ê®ÆªºÄæ¦ìµ²ºc¦p¤U¹Ï©Ò¥Ü¡G

[attach]962[/attach]

¦¸¼ÐÃD¸ê®Æªí
¦b¦¸¼ÐÃD¸ê®Æªí¤¤§Ú­Ì«h¥²¶·°t¦X³æ¤@¥DÃD°Q½×¦Cªíµ{¦¡ºô­¶join.asp¡A«Ø¥ß°ò¥»ªºEmail¡B©m¦W¡B¥DÃD¡B¤º®e»Pµoªí®É¶¡µ¥¤­­ÓÄæ¦ì¡G

[attach]963[/attach]

·íµMÁÙ¦³¡y¥D½s¸¹¡zÄæ¦ì¡A³o­ÓÄæ¦ìªº¸ê®Æ¤º®e±N·|»P¥D¼ÐÃD¤¤ªº¬Û¦P¡I°£¦¹¤§¥~¡AÁÙ¦³¤@­Ó°Q½×¤º®eªº¡y¦¸½s¸¹¡zÄæ¦ì¡A©Ò¥H¦b¦¸¼ÐÃD¸ê®Æªí¤¤§Ú­Ì¦P¼Ë¥²¶·«Ø¥ß¤C­ÓÄæ¦ì¡A¦¸¼ÐÃD¸ê®ÆªºÄæ¦ìµ²ºc¦p¤U¹Ï©Ò¥Ü¡G

[attach]964[/attach]

´£¥Ü¡G
¥Ñ¥D¼ÐÃD¸ê®Æªí»P¦¸¼ÐÃD¸ê®ÆªíªºÄæ¦ìµ²ºc¤¤¡A§Ú­Ì¤£Ãøµo²{¡G¥D½s¸¹»P¦¸½s¸¹¤D¬O¤@¹ï¦hªº¥D±qÃö«Y¡A§Ú­Ì°²³]¬Y­Ó°Q½×¥DÃD¥¦ªº¥D½s¸¹¬O¢°¡A¦pªG¨S¦³¤H¹ï¦¹¥DÃDµo¥X°Q½×¦^À³(¦^À³½g¼Æ¬O¢¯)¡A«h¦b¦¸¼ÐÃD¸ê®Æªí¤¤±N¨S¦³¥D½s¸¹Äæ¦ì¬°¢°ªº¸ê®Æ¿ý¦s¦b¡F¬Û¹ïªº¡A¦pªG¦³¤T­Ó¤H¹ï¦¹¥D½s¸¹¬O¢°ªº°Q½×¥DÃD°µ¥X¦^À³(¥D¼ÐÃD¸ê®Æªí¤¤ªº½g¼Æ¸ê®ÆÄæ¦ì­È¬°¢²)¡A«h¦b¦¸¼ÐÃD¸ê®Æªí¤¤±N¦³¤­µ§¥D½s¸¹Äæ¦ì­È¬°¢°ªº¸ê®Æ¿ý¦s¦b(¦ý¦¹¤Tµ§¸ê®Æ¿ýªº¦¸½s¸¹Äæ¦ì­È¨Ã¤£¬Û¦P)¡I
³oºØ¤@¹ï¦h©Î¦h¹ï¤@ªºÃö«YÃö«Y¤D¬O³z¹L¡yÃöÁp©Ê¡zªº³]©w¦Ó²£¥Í¡I
§@ªÌ: ¤p»x    ®É¶¡: 2010-5-26 20:39

«Ø¥ß¸ê®ÆªíÃöÁp©Ê
¤F¸Ñ¤F¥D¼ÐÃD¸ê®Æªí»P¦¸¼ÐÃD¸ê®Æªí¤¤¡y¥D½s¸¹¡z¡B¡y¦¸½s¸¹¡zªº¹ïÀ³Ãö«Y«á¡A§Ú­Ì´N¨Ó¶i¦æ¥D¼ÐÃD¸ê®Æªí»P¦¸¼ÐÃD¸ê®Æªíªº¡yÃöÁp©Ê¡z³]©w¡I¦]¬°¥»µ{¦¡½d¨Òªº¸ê®Æ®w¬°ACCESS¸ê®Æ®w¡A¦]¦¹¤p»x´N¬°±z²¤¶¤@¤U¦p¦ó¬°ACCESS¸ê®Æ®w¤¤ªº¸ê®Æªí«Ø¥ßÃöÁp©Ê¡G

¥´¶}§Ú­Ì¤w¸g«Ø¥ß¦n¥D¼ÐÃD¸ê®Æªí»P¦¸¼ÐÃD¸ê®Æªíªºbbs.mdb¸ê®Æ®w¡C



µù
§@ªÌ: ¤p»x    ®É¶¡: 2010-5-26 20:47

°Q½×°Ï¶µ¥Ø¦Cªíµ{¦¡

°Q½×¶µ¥Ø¦Cªíµ{¦¡ºô­¶index.asp¬O¶i¤J¡y°Q½×°Ï¡zªº¤jªùºô­¶¡A³o­Óºô­¶¥]§t¨â¤j³¡¤À¡A¤@¬O¥þ³¡°Q½×¶µ¥Øªº¦Cªí³¡¤À(¤U¹ÏA³¡¤À)¡A¶i¤J¦¹¤@µ{¦¡ºô­¶«á¡A¦pªGÂI¿ï¤F¬Y¤@­Ó¤w¦s¦bªº°Q½×¶µ¥Ø¡y¥DÃD¡z¶W³sµ²¡A´N¥i¥H³sµ²¶i¤J¸Ó°Q½×¥DÃDªº¹ïÀ³°Q½×ºô­¶(join.asp)¡A¦pªG·Q­nµoªí·sªº°Q½×¶µ¥Ø¡A´N¥iª½±µ¦bµ{¦¡ºô­¶¤U¤èªºµo¨¥ªí³æ(¤U¹ÏB³¡¤À)¤¤¿é¤J¸ê®Æ¨Ó«Ø¥ß·sªº°Q½×¥DÃD¡G

[attach]972[/attach]

¡@¦]¦¹¡A§Ú­Ìµ{¦¡ªº³]­p´N¤À¬°¨â­Ó³¡¤À¡A¦b¥þ³¡°Q½×¶µ¥Øªº¦Cªí³¡¤À¡A§Ú­Ì¥u­n¶}±Ò¸ê®Æ®w¡AµM«á±N¡y¥D¼ÐÃD¡z¸ê®Æªí¤¤ªº¬ÛÃöÄæ¦ì¸ê®Æ¨ú¥X¨Ó¡A¨Ã¥B¥[¤W¬ÛÃöªºHTMLªí®æ¼ÐÅÒ²Õ¦X´N¥i§¹¦¨¥ô°È¡G

[attach]973[/attach]

¡@§Q¥ÎWhile Wend °j°é±Ô­z±N©Ò¦³¸ê®Æªí¤¤¸ê®Æ¿ýÄæ¦ìªº¸ê®Æ¥þ³¡¨ú¥X¦Cªí¡A°j°é±Ô­z°±¤î°õ¦æªº±ø¥ó¬° not rs.eof¡A·N«ä´N¬O»¡°Ê§@¤¤¸ê®Æ¿ýªº¦ì¸m­Y¶W¹L¸ê®Æ¿ý³Ì«á¤@µ§¸ê®Æ®É´N°±¤î°j°é±Ô­z¡A·íµM¡A¦b°j°é¤¤±Ô­z°õ¦æŪ¨ú¤@µ§¸ê®Æ¿ý¸ê®Æ«á¡A§Ú­ÌÁÙ¥²¶·§Q¥Î¸ê®Æ¿ýªºMoveNext¤èªk±N§@¥Î¤¤¸ê®Æ¿ýªº¦ì¸m²¾¦Ü¤U¤@µ§¸ê®Æ¤W¡I


´£¥Ü¡G


index.asp
  1. <%
  2. '«Ø¥ß¸ê®Æ®w³sµ²ª«¥ó
  3.         Set conobject = Server.CreateObject("ADODB.Connection")
  4.         DBPath = Server.MapPath("bbs.mdb")
  5. '³sµ²¸ê®Æ®w       
  6.         conobject.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ="&DBPath
  7. '«Ø¥ß¸ê®Æ®w¦s¨úª«¥ó       
  8.         Set RS=Server.CreateObject("ADODB.Recordset")
  9. '¥´¶}¸ê®Æªí       
  10. SQL = "Select * From ¥D¼ÐÃD Order By µo¨¥¤é´Á Desc"
  11.         RS.Open SQL,conobject,1,3
  12. %>

  13. <HTML>
  14. <BODY>
  15. <h2 Align="Center"><img border="0" src="bbs.gif"></h2>
  16. <TABLE Border=0 Cellspacing=5 width="100%">     
  17. <TR BgColor=#00FFFF>     
  18. <TD align="center" bgcolor="#0066FF" width="20%"><font size="2" color="#FFFFFF">¤é´Á/®É¶¡</font></TD>   
  19. <TD NoWrapP align="center" bgcolor="#0066FF" width="20%"><font size="2" color="#FFFFFF">°Q½×µo°_¤H</font></TD>   
  20. <TD align="center" bgcolor="#0066FF" width="50%"><font size="2" color="#FFFFFF">¥DÃD</font></TD>   
  21. <TD align="center" bgcolor="#0066FF" width="10%"><font size="2" color="#FFFFFF">¦^À³½g¼Æ</font></TD></TR>   
  22.    
  23. <% While not rs.eof%>   
  24.    <TR Valign=TOP>   
  25.    <TD NoWrap width="20%">   
  26.     <p align="center"><font size="2"><%=rs("µo¨¥¤é´Á")%></font></TD>   
  27.    <TD width="20%">   
  28.     <p align="center"><font size="2"><%=rs("©m¦W")%></font></TD>   
  29.    <TD width="50%"><A HREF=join.asp?ID=<%=rs("¥D½s¸¹")%>>   
  30.    <font size="2">   
  31.    <%=rs("¥DÃD")%></font></A></TD>   
  32.    <TD width="10%">   
  33.     <p align="center"><font size="2"><%=rs("½g¼Æ")%></font></TD>   
  34.    </TR>   
  35. <%   
  36.    rs.MoveNext   
  37. Wend      
  38. %>   
  39. </TABLE>   
  40.    
  41. <TABLE Width="100%"><TR><TD Align=Center bgcolor=#000080>   
  42. <B><font color="#FFFFFF" size="2">§Ú¦³·s°ÝÃD­n°Q½×</font></B>   
  43. </TD></TR></TABLE>   
  44. <CENTER>   
  45. <FORM Action=addnew.asp Method=POST>   
  46. <TABLE Border="1" bgcolor="#FFCC66" bordercolor="#FF9933" cellspacing="0">   
  47.    
  48. <TR><TD><font size="2">©m¦W¡G</font></TD>   
  49. <TD><font size="2"><INPUT Type="text" Size="30" Name="©m¦W"></font></TD></TR>   
  50.    
  51. <TR><TD><font size="2">Email¡G</font></TD>   
  52. <TD><font size="2"><INPUT Type="text" Size="30" Name="Email">   
  53.   </font>   
  54. </TD></TR>   
  55.    
  56. <TR><TD><font size="2">¥DÃD¡G</font></TD>   
  57. <TD><font size="2"><INPUT Type="text" Size="60" Name="¥DÃD">   
  58.   </font>   
  59. </TD></TR>   
  60.    
  61. <TR><TD><font size="2">¤º®e¡G</font></TD>   
  62. <TD><font size="2"><TEXTAREA Name="¤º®e" Rows="8" Cols="60">
  63. </TEXTAREA></font></TD></TR>   
  64. </TABLE>   
  65. <INPUT Type="submit" Value="°e¥X°Q½×¥DÃD">   
  66. </FORM>   
  67. </CENTER>   
  68. </BODY>   
  69. </HTML>
½Æ»s¥N½X





Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)