推薦:使用GrapShot組件製作ASP SCRIPT計數器這個程序將記數器的數字放在ACCESS數據庫中,當然你也能用你希望其它的ODBC數據源.這個程序從URL中讀取記數信息.如下: IMG src=id=MYTEST&seq=default&cells=7
在網上查找大量資料,經過自己的不懈努力,終於測試成功了。原來要在服務器上安裝mysql odbc 3.51 ,還有數據庫用戶名及密碼,用下面的密碼就可以了。
| 以下為引用的內容: <% strconnection=driver={mysql odbc 3.51 driver};database=weste_net;server=localhost;uid=root;password= set conn = server.createobject(adodb.connection) conn.open strconnection strquery = select * from News set rs = conn.execute(strquery) if not rs.bof then %> <table> <tr> <td<b>序列號</b></td> <td><b>標題</b></td> </tr> <% do while not rs.eof %> <tr> <td><%=rs(id)%></td> <td><%=rs(NTitle)%></td> </tr> <% rs.movenext loop %> </table> <% else response.write(無暫時沒有.) end if rs.close conn.close set conn = nothing set rsdata = nothing %> |
分享:設計ASP用戶的登錄模塊用戶登錄驗證腳本,Chkpwd.asp 以下為引用的內容:% '=======用戶登錄驗證腳本======= '如果尚未定義Passed對象,則將其定義為false,表示沒有