|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
onclick add count to a row field
Quick and hopefully easy question...
Is it possible to click on a link, and have that click add a count to a field in a row? I basically want a field named "counter", and each time the link is clicked have it add 1 to the count in that field. |
|
#2
|
|||
|
|||
|
RE: onclick add count to a row field
I forgot to mention that the link will already be passing a "$id" to another page. Can the 2 be combined?
|
|
#3
|
|||
|
|||
|
RE: onclick add count to a row field
on the page you reach when you click on the link ,you could use
mysql_query("Update tablename set counter=counter+1"); |
|
#4
|
|||
|
|||
|
RE: onclick add count to a row field
Yes, I'm doing that now. I didn't know if a link_type system would be more effective or practical, if even possible, so thats why I thought I'd ask. Thanks
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > onclick add count to a row field |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|