Don't ask to ask, just ask | |
PerlMonks |
Bug on MySQL? timestamp problemby kidd (Curate) |
on Aug 11, 2003 at 22:55 UTC ( [id://283051]=perlquestion: print w/replies, xml ) | Need Help?? |
kidd has asked for the wisdom of the Perl Monks concerning the following question:
Hello:
I create a CGI to administrate news items, I've created the database on MySQL. Each of the news items has a timestamp field to know the date and time each of the news where submited. When a user sees a news item I run a function that adds the number of views that item has: The code runs correctly and adds the views without a problem. The thing is that when I update the views field, the timestamp field is also updated. What I would like to know if there is a way to avoid this? THANKS
Back to
Seekers of Perl Wisdom
|
|