SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Add 1 to a database
-
Jan 29, 2005, 00:33 #1
- Join Date
- Dec 2004
- Location
- At My Desk!!
- Posts
- 1,642
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Add 1 to a database
I need to be able to add 1 to a databse when a user clicks on a link that takes them to an external site?
Thanks in advance"Am I the only one doing ASP.NET in Delphi(Pascal)?"
-
Jan 29, 2005, 00:47 #2
- Join Date
- Dec 2003
- Location
- Federal Way, Washington (USA)
- Posts
- 1,524
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Add 1 to what? A visitor counter that's stored in your database, or are you talking about something else? Is the link to the external site on your web page?
Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
Showcase your music collection on the Web
-
Jan 29, 2005, 01:13 #3
- Join Date
- Jan 2002
- Location
- Australia
- Posts
- 2,634
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
If you want to increment the count the SQL query would look something like this:
Code:mysql_query("UPDATE table SET count=count+1 WHERE ID=$ID");
Bookmarks