| |
hnikou
Posts: 3
Score: 0
Joined: 10/20/2007
Status: offline
|
I've a database with four fileds Txt1, Txt2, Pdate1 & pdate2. The two first fields are text and the others are date. I am using a search page that send Query.string to look for specific entry of Txt1 and Txt2. My question is how to show just the results dependent to appropriate pdate1 and pdate2.e.g.:I wrote the line below but no results as i needed. I want this algoritm: If( Txt1 is valid and date1 is greater than today ) OR (Txt2 is valid and date2 is greater than today ) write something. <% if (rs.Fields.Item("Txt1").Value) = Request.QueryString( "QueryString" ) and (rs.Fields.Item("pdate1").Value) > date() Or if (rs.Fields.Item("Txt2").Value) = Request.QueryString( "QueryString" ) and (rs.Fields.Item("pdate2").Value) > date() Then Response.Write " something" End If rs.MoveNext Loop %> Thanks in advanced. Henry
< Message edited by hnikou -- 10/20/2007 8:40:03 PM >
|
|