Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Feeling thick how do i add 1 !

Status
Not open for further replies.

wantstolearncfm

IS-IT--Management
Jun 29, 2004
160
GB
Hi,
Ive done this countless times but wheter it be mind lapse god knows but i cant remember how to add one to a record
as in
i have a login attempts file it stores the attempted login in a database all i want it to do is plus 1 everytime the IP tries to login into the attempts column
how can i do it!
 

<cfquery name="incrementip" datasource="spano">
update visitor
set visits = visits + 1
where IP = '#REMOTE_ADDR#'
</cfquery>
Fixed it,
Totally dumb for a minute there!
Out of interest under the DPA 1988 how long can i log an ip address for before it must be removed?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top