Click count record

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hemmoon
Forum Newbie
Posts: 1
Joined: Sat Feb 27, 2010 10:33 pm

Click count record

Post by hemmoon »

Hi All,

I am a new PHP program. I have 20 record in mySQL database table. this table there are 10 cullunms. Last field name click_count.

I want each row of record with link that we can click and if click on one row then the number of click_count field is increase for that rows.

Hope you understant and help me.

Moon
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: Click count record

Post by s.dot »

This is very simple. Just link the article to, for example, click.php?article_id=$articleID. Record the click on that script for $articleID in the database and then redirect to the actual article.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply