Another option is to create a separate table to store the views. By the way, it's usually better to let the database handle the increment. That way, you avoid race conditions.
UPDATE news_views SET views = views + 1 WHERE news_id = ?In reply to Re: Bug on MySQL? timestamp problem
by chromatic
in thread Bug on MySQL? timestamp problem
by kidd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |