Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

increment page views number

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
pakdhetimin
Smarty n00b


Joined: 07 Jul 2019
Posts: 1

PostPosted: Sun Jul 07, 2019 12:07 pm    Post subject: increment page views number Reply with quote

hello everyone.
i am new in smarty and wanna do coding with smarty on my blog. here is the scenario:

1. page views number of an article is grabbed from mysql database and show it on article page with smarty template.
2. whenever this page is viewed or read by visitor it will increment page views number by 1 or (+1)
3. then the incremented value (+1) is updated to mysql database

how to write the code of that scenario, anyone would help me? thanks in advance Smile

ps; using php, mysql and smarty template
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP