yyan
|
Posted: 05/12/2004, 8:37 PM |
|
I have an article system, I want count the nunber of click , how to do it?
I use the "before show" ,use "chage number of columns" and set the exprission "update an_article set article_views=article_views+1 where article_id={article_id}"
but it not workd
|
|
|
zeuch
Posts: 25
|
Posted: 05/13/2004, 3:42 AM |
|
Try to use a Before Show event code like this:
$conn = new clsDB<connection_name>();
$conn->query("update an_article set article_views=article_views+1 where article_id=" . CCGetFromGet("article_id",0));
unset($conn);
_________________
Matheus Zeuch |
|
|
|