OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

Display blanc

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Display blanc
Page: [1]
 
 
box

 

Posts: 167
Joined: 12/10/2002
Status: offline

 
Display blanc - 9/14/2009 3:14:10   
<%If FP_FieldVal(fp_rs,"nextapt") <= fixTheDate(Date()) Then%>
<font color="#FF0000"><%Response.write "Old Appointment"%></Font>
<%end if%>


Nextapt is data/time field and fixTheDate(Date()) returns the curent date like date() I want if nextapt is older than fixTheDate(Date()) then display old appointment but it disply nothing! do you have any idea why? Thanks
TexasWebDevelopers

 

Posts: 761
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: Display blanc - 9/14/2009 9:56:48   
It isn't finding data and you don't write anything if there isn't any data found...you could do something like this:
<%If FP_FieldVal(fp_rs,"nextapt") <= fixTheDate(Date()) Then%>
<font color="#FF0000>Old Appointment</font>
<%else%>
<font color="#FF0000>No Data Found</font>
<%end if%>


_____________________________

:)

Follow us on TWITTER

(in reply to box)
box

 

Posts: 167
Joined: 12/10/2002
Status: offline

 
RE: Display blanc - 9/14/2009 11:40:32   
Thanks for reply, now it disply for date newer than today also including older date no appointment! I useded this:

<%If FP_FieldVal(fp_rs,"nextapt") <= fixTheDate(Date()) Then%>
<font color="#FF0000>Old Appointment</font>
<%else%>
<font color="#FF0000>No Data Found</font>
<%end if%>

(in reply to box)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Display blanc
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts