I want to count how many views a link gets .. but i dont want a new line to be created every time a person clicks a link ...
Is there a way that I can take the original value from the database ... (i know this part) and then add one that that value .... then re-write the new value into the same field you took the old value from?
Please Help.
THANKS
How do i re-write data into a column?
Moderator: General Moderators
get the value, (say it's ZERO) from the DB:
or w/e you do...make it = $value or something, then:
^ on the page that you want the count for...then right after that, an SQL query:
..that should do it....
later on, -Brian
Code: Select all
$value = $rowї'value'];Code: Select all
$value = $value+1;Code: Select all
"insert into DBName set page_count='$value'";later on, -Brian
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
thanks
Thanks guys