Hi Bob, Thanks so much, I will try this tonight. This might work, as I found out that MySQL is complaining about the default value.
Thanks for your help, John ----- Original Message ----- From: Bob Imperial <[EMAIL PROTECTED]> Date: Friday, May 30, 2008 1:09 am Subject: RE: counter for dynamic page To: CF-Newbie <[email protected]> > Try using something like: > > <cfset this_count = 30> > <cfset hit_count = this_count + 1> > Before your query. > > -----Original Message----- > From: John Barrett [mailto:[EMAIL PROTECTED] > Sent: Friday, May 30, 2008 1:54 AM > To: CF-Newbie > Subject: Re: counter for dynamic page > > Hi Simon, > Thanks so much for your help:) > Well that is what I was trying to do, with the recording the > page by > the ID. Thanks so much.However, I am getting a error from MySQL (you > have an error in your SQL syntax; check the manual that corresponds > to your MySQL server version for the right syntax to use near '' at > line 4). The part I can't figure out is why I get the error from > using SET hit_count = hit_count + 1 with the updated code, but > when I > use the orginal peice I do not get this error. I am wondering if you > can offer any help? > > Thanks so much, > John > On May 29, 2008, at 1:04 AM, Simon Free wrote: > > > SET hit_count = hit_count + 1 > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3685 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
