萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> asp編程 >> asp數據庫查詢代碼

asp數據庫查詢代碼

 call per.getPermition("news",0)
 Dim title,sql,rs
 title = Lib.safeRequest("/",0)
 sql = "select Id From [" & cfg.TablePrefix & "news] where title = '" & title & "'"
 rs = dbo.Query(sql)
 If isEmpty(rs) Or isNull(rs) Then
  Response.Write(0)
 Else
  Response.Write(1)
 End If
 Set Lib = Nothing : Set Dbo = Nothing

copyright © 萬盛學電腦網 all rights reserved