RE: Session Vars and cfquery - cflock where?
You can always localize your session variable like this: You can use the local variable myLocalVar in your query. That way you don't have to lock large chunks of code. -Elizabeth -Original Message- From: Brunt, Michael [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 2:08 PM To: CF-Talk Subject: Session Vars and cfquery - cflock where? When using a session variable in a http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Rotating banners
Gotcha. Interesting solution- I wouldn't have thought to do it that way. I'll give it a shot! Thanks a lot, Elizabeth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:29 PM To: CF-Talk Subject: Re: Rotating banners i've done this by using time. it's kind of 2 fold. Weight 6 ad1,ad2,ad3,ad4 weight 3 ad5, ad6, ad7, ad8 -I'd assign the "weight" of each banner before hand. -Grab the last digit in the seconds of the current time. -Display an ad from the weight group that corresponds w/ the time integ er i.e. if the last digit in the time was 6 it would display an ad w/ a weight of 6 or higher and if it was 3 it'd display ads from the 3 weight group. if i wanted an ad to have a chance of being displayed 70% of the time i 'd set it to weight 3. make sense? i would actually like to see a cleaner way of doing but th at works. Savan __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Rotating banners
Hello- I am developing a banner rotating tool and need some ideas on how to best handle a requirement. I have gotten the tool to a point where it displays banners randomly- no problem. Now what I need to do is give certain banners more "weight" than others: some banners need to be displayed more frequently than the rest. The code that I have below gives equal weight to each banner; I need to find a way to give some banners more prevalence on our pages. SELECT i.*, a.advert_name FROM images i, advertiser a WHERE i.id = #activeBanners[randomId]# and i.advert_id = a.advert_id Any ideas? Thanks in advance, Elizabeth __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Problem w/ CFFILE...
Kelly, Try adding this atribute to your form tag: enctype="multipart/form-data" -Elizabeth -Original Message- From: Kelly Matthews [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 11:40 AM To: CF-Talk Subject: Problem w/ CFFILE... I haven't run across this error before. On my form I have this: Logo: Which allows for me to upload a file. I basically click Browse and find the image. The action page has: Well I am getting an error on that that says: Message Error in CFFILE tag Type UNKNOWN Detail The form field specified in the CFFILE tag (LogoFileName) does not contain an uploaded file. Please be sure that you have specified the correct form field name. Yet I am choosing a file on the form page. Any idea what would be causing this NOT to work? I have never see this problem before. -Kelly ~~ Kelly Matthews Senior Programmer [EMAIL PROTECTED] http://www.allsoldout.net 703.387.4000 x 35 ~~ __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists