Connie DeCinko wrote:
> Anyone know of a Tip of the Day tutorial, such as this one for Flash, but
> just using HTML and CFM? I'd like to pass it along to a junior developer
> and looking to save some time building it for them.
HTML? CFM? Why would you want to do that when you dan use the
trusty
> Well it all or mostly worked great. I made a few small changes,
> nothing serious. Oddly though it seems to periodically output extra
> characters in the beginning. It appears to occur when the tip_used
> column is reset to 0.
ok, well I figured that out. It had extra non-displayed chara
Well it all or mostly worked great. I made a few small changes, nothing serious. Oddly though it seems to periodically output extra characters in the beginning. It appears to occur when the tip_used column is reset to 0.
Here's a display of the tips:
http://hhp.umd.edu/HHPv1/dbf/tipFunctions/t
)#
>
>
> #GetTip.Tip#
>
>
> - Original Message -
> From: daniel kessler
> To: CF-Talk
> Sent: Wednesday, August 11, 2004 2:02 PM
> Subject: Re: tip of the day
>
>
> ok, I have another TOTD question. I was told th
ofcourse... there should be a "=" after those CachedWIthin's : p
cachedwithin="#CreateTimeSpan(1,0,0,0)#">
- Original Message -
From: Ewok
To: CF-Talk
Sent: Wednesday, August 11, 2004 6:40 PM
Subject: Re: tip of the day
keep what you got with t
= 1
WHERE TipID = #val(GetTip.TipID)#
#GetTip.Tip#
- Original Message -
From: daniel kessler
To: CF-Talk
Sent: Wednesday, August 11, 2004 2:02 PM
Subject: Re: tip of the day
ok, I have another TOTD question. I was told that each tip can only be displayed
= 1
WHERE TipID = #val(GetTip.TipID)#
#GetTip.Tip#
- Original Message -
From: daniel kessler
To: CF-Talk
Sent: Wednesday, August 11, 2004 2:02 PM
Subject: Re: tip of the day
ok, I have another TOTD question. I was told that each tip can only be displayed
f the date in the application scope is less than today's date or there
is no tip, start the procedure again
Pascal
> -Original Message-
> From: daniel kessler [mailto:[EMAIL PROTECTED]
> Sent: 11 August 2004 20:03
> To: CF-Talk
> Subject: Re: tip of the day
>
>
f the date in the application scope is less than today's date or there
is no tip, start the procedure again
Pascal
> -Original Message-
> From: daniel kessler [mailto:[EMAIL PROTECTED]
> Sent: 11 August 2004 20:03
> To: CF-Talk
> Subject: Re: tip of the day
>
>
ide cache
> - Original Message -
> From: daniel kessler
> To: CF-Talk
> Sent: Wednesday, August 04, 2004 3:59 PM
> Subject: Re: tip of the day
>
>
> So by caching the query, it assures that everyone gets the same random
> TIP for the day or
kessler
> To: CF-Talk
> Sent: Wednesday, August 04, 2004 3:59 PM
> Subject: Re: tip of the day
>
>
> So by caching the query, it assures that everyone gets the same random
> TIP for the day or just that particular machine?
>
> > well there are a
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/appfra29.htm
it will cache it for everyone, its a server side cache
- Original Message -
From: daniel kessler
To: CF-Talk
Sent: Wednesday, August 04, 2004 3:59 PM
Subject: Re: tip of the day
So by caching the query, it
----- Original Message -
> From: daniel kessler
> To: CF-Talk
> Sent: Tuesday, August 03, 2004 1:36 PM
> Subject: Re: tip of the day
>
>
> > Id stick with ID and tip, pull a random one each time and cache the
>
> > query for 24 hours.
: Ewok [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 August 2004 9:40 AM
To: CF-Talk
Subject: Re: tip of the day
well there are a couple of ways to get a random record...
as long as ou are not using access there is a RAND() function to do it...
something like this if i remember correctly
select
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 August 2004 9:40 AM
To: CF-Talk
Subject: Re: tip of the day
well there are a couple of ways to get a random record...
as long as ou are not using access there is a RAND() function to do it...
something like this if i remember correctly
select * from table
: Re: tip of the day
> Id stick with ID and tip, pull a random one each time and cache the
> query for 24 hours.
That brings up some questions. So, I pull a random tip each day, not a random tip each page refresh. So what pulls the random tip and sets it as the TOTD? I've a
> Id stick with ID and tip, pull a random one each time and cache the
> query for 24 hours.
That brings up some questions. So, I pull a random tip each day, not a random tip each page refresh. So what pulls the random tip and sets it as the TOTD? I've also not yet looked into caching queries.
Id stick with ID and tip, pull a random one each time and cache the query for 24 hours.
as for dates, I like to break them into to 3 parts when using a form to enter them..
form.Date_Day, form.Date_Month, and form.Date_Year
then piece them back together in a cfset to get the date. while catching
18 matches
Mail list logo