%@ codepage = 28597 LCID = 1032 %>
<%on error resume next%>
<%
id = trim(Request("id"))
If id="" OR IsNull(id) or not(isnumeric(id)) Then response.redirect "epikairotita.asp"
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open xDb_Conn_Str
key = trim(Request("key"))
If key="" OR IsNull(key) or not(isnumeric(key)) Then key = 0
tid = "" & id & ""
strsql = "SELECT *,CONVERT(datetime, sdate, 103) as showdate FROM [news] where CONVERT(datetime, sdate, 103) <= CONVERT(datetime, getdate(), 103) and id="& tid
Set rs2 = Server.CreateObject("ADODB.Recordset")
rs2.Open strsql, conn, 1, 1
On Error Resume Next
If rs2.BOF And rs2.EOF Then EmptyRecordset = True
On Error Goto 0
If Err Then EmptyRecordset = True
%>