On Saturday 02 February 2002 00:08, Jerry Leonard wrote:
> Hi all,
>
> I am relatively new to php and mysql and would appreciate any help you can
> provide. Here is the task:
>
> I need to have a point system added to my site. What I would like is when a
> user logs in they will get 1000 points. But they only get it once per day.
>
> I am running:
> Xitami on WinME, PHP 4.06 and Mysql 3.23.43 win binary.
>
> If anyone is willing to help I will provide a database dump and any part or
> the script you will need. I would give the info now except I don't know
> what parts
> will be needed.

One way to do it would be to have a "last_updated" field. When user logs in, 
"last_updated" is checked, if it's earlier than today then update it and add 
1000 points to the user.



-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
One expresses well the love he does not feel.
                -- J.A. Karr
*/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to