CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 how to add "views"

Print topic Send  topic

Author Message
yyan
Posted: 05/12/2004, 8:37 PM

O:)

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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.