Conter problem (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


wizard_oz -> Conter problem (1/28/2008 5:17:11)

Hi, I have a problem wich I don't have an idea how to solve. I need to create a counter something very simple like count=count+1 but I need the counter will start from 0 every day. I have a database and I'm holding a the current date in every record I am creating
Any Idea.....?




Spooky -> RE: Conter problem (1/28/2008 13:31:01)

Explain some more how you will use the count?




wizard_oz -> RE: Conter problem (1/30/2008 13:14:03)

Hi,
I just need to count the record every day
Do you have any idea for me?




ou812 -> RE: Conter problem (1/31/2008 13:06:35)

I'm not quite sure what you're looking to do either, or in what language, but I'll take a stab.

In your database maybe have a table, called day_count. The table would have just one column, called rec_count, with an ID of a formatted date (yyyymmdd). Now, as a user visits your page, or wherever you need to increment the count, grab today's date from the server, and then read the row from the table and then add one to the count, and write it back out.

Does that help?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125