|
designzo -> month & year only as current date for default (10/24/2007 2:53:02)
|
We have built a database and have used frontpage 2002 database wizard plus custom SQL on our .asp pages, the below html results Question - instead of having to update the defalt period s-defaultfields="PN=&Period=October 2007" in the many pages that access the database results, is it possible instead to use a computors current date BUT using month and year only? Any help would be greatly appreciated thank you PART ONE of html - editable to create PART TWO <!--webbot bot="DatabaseRegionStart" s-columnnames="Ident,PN,Prop,Book,Label,Period" s-columntypes="3,3,202,202,202,135" s-dataconnection="Database1" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice="Ident" s-menuvalue="Ident" b-tableborder="TRUE" b-tableexpand="FALSE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource s-displaycolumns="Ident,PN,Prop,Book,Label,Period" s-criteria s-order s-sql="SELECT Host.Ident, Host.PN, Host.Prop, Host.Book, Availability.Label, Availability.Period<br>FROM Availability INNER JOIN Host ON Availability.Source = Host.Ident<br>WHERE (PN = '::PN::' AND Period = '::Period::')" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields="PN=&Period=October 2007" s-norecordsfound="No records returned." i-maxrecords="1" i-groupsize="0" botid="0" u-dblib="../_fpclass/fpdblib.inc" u-dbrgn1="../_fpclass/fpdbrgn1.inc" u-dbrgn2="../_fpclass/fpdbrgn2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" align="left" width="100%"><font color="#000000">This is the start of a Database Results region. The page must be fetched from a web server with a web browser to display correctly; the current web is stored on your local disk or network.</font></td></tr>" startspan b-WasTableFormat="TRUE" --><!--#include file="../_fpclass/fpdblib.inc"--> PART TWO <% if 0 then %> <SCRIPT Language="JavaScript"> document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>"); </SCRIPT> <% end if %> <% fp_sQry="SELECT Host.Ident, Host.PN, Host.Prop, Host.Book, Availability.Label, Availability.Period FROM Availability INNER JOIN Host ON Availability.Source = Host.Ident WHERE (PN = '::PN::' AND Period = '::Period::')" fp_sDefault="PN=&Period=October 2007" fp_sNoRecords="<tr><td colspan=6 align=left width=""100%"">No records returned.</td></tr>" fp_sDataConn="Database1" fp_iMaxRecords=1 fp_iCommandType=1 fp_iPageSize=0 fp_fTableFormat=True fp_fMenuFormat=False fp_sMenuChoice="Ident" fp_sMenuValue="Ident" fp_sColTypes="&Ident=3&PN=3&Prop=202&Book=202&Label=202&Period=135&" fp_iDisplayCols=6 fp_fCustomQuery=True BOTID=0 fp_iRegion=BOTID %>
|
|
|
|