Jump to content


Tracking number of email sent

  • Please log in to reply
1 reply to this topic

#1 dbrimlow

  • Members
  • PipPipPip
  • Advanced Member
  • 712 posts

Posted 17 July 2006 - 06:03 PM

I administer a large NYC real estate firm website in NYC (over 250 agents); I've recently been asked to keep track of how many people request information from our website about apartment.

Each listing has a "submit inquiry" button that opens a form for their specific information (name, email, etc.) and passes the Vars to a "sendmail".php page that emails the listing ID in the subject line and other vars in the mail_message, to the agent associated with that listing ID in the database.

I simply wanted to have it also advance a counter on another page, with each submit.

But I wanted to track it by a "calander" - Day, week, Month, including running totals.

The tough part, is having it recognize a new day, week, month and ad the totals respectively.

I've never done any actual math calculations with php.

Any ideas. Am I overthinking?


I am always amazed by no matter how much I know, I know I don't know as much as I thought I knew.  - D. Brimlow.

#2 Ninjakreborn

  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 18 July 2006 - 03:39 PM

Actually this would be fairly simple, on both pages start a session, then register all your session variables to whatever you wanted to record, remove the expiration, the max_life_time session time, remove it completey, if you can, I see people having permanent counters.  What I would do, is have sessions do it, ifn ot then just database it all and pull it from the database when you are ready, eitehr one will work.  Or you could create your own idea, like create a .txt file somewhere like log.txt, and have it write all that information to a file, and call the informationf rom the file when you need it, have it update it, whenever you need, and just write over the old data with autoincrementing calculations.


Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users