[PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread Er Galvão Abbott
Just a sugestion here, that may sound strange, but I'd do it like this: Why don't you keep a simle text-counter file for each user? Why this HAVE to go trough SQL? Just creat a text file with 0 on it. When the user posts, retrieve the number from the file, increment it and then write it back...

Re: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread Conor McTernan
On Fri, Jul 20, 2001 at 11:52:36AM +, Er Galvão Abbott wrote: Just a sugestion here, that may sound strange, but I'd do it like this: Why don't you keep a simle text-counter file for each user? Why this HAVE to go trough SQL? i suppose i want it to go through SQL because I am storing

Re: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread py
: Friday, July 20, 2001 8:02 AM Subject: Re: [PHP] Re: (another, not entirely)sessions question On Fri, Jul 20, 2001 at 11:52:36AM +, Er Galvão Abbott wrote: Just a sugestion here, that may sound strange, but I'd do it like this: Why don't you keep a simle text-counter file for each user

RE: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread Don Read
On 20-Jul-2001 Er Galvão Abbott wrote: Just a sugestion here, that may sound strange, but I'd do it like this: Why don't you keep a simle text-counter file for each user? Why this HAVE to go trough SQL? Just creat a text file with 0 on it. When the user posts, retrieve the number from

Re: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread teo
Hi Don! On Fri, 20 Jul 2001, Don Read wrote: On 20-Jul-2001 Er Galv?o Abbott wrote: Just a sugestion here, that may sound strange, but I'd do it like this: Why don't you keep a simle text-counter file for each user? Why this HAVE to go trough SQL? Just creat a text file with 0

Re: [PHP] Re: (another, not entirely)sessions question

2001-07-20 Thread Don Read
On 20-Jul-2001 [EMAIL PROTECTED] wrote: Hi Don! On Fri, 20 Jul 2001, Don Read wrote: snip Because the database is optimized for this kind of stuff ? Once you get the db handle (and you have. you've authenticated right ?), SELECT count(*) from msgposts where user_id=$foo is likely be