Re: [PHP-DB] Desperate Help needed

2001-01-14 Thread Toby Butzon
Set up an expire time... if a user hasn't accessed the page showing the room's activity (where all the messages are shown) within, say, 3 minutes, then the next request that comes in, regardless of who makes it, should remove the timed-out user from the list. It's important, of course, to make su

Re: [PHP-DB] PHP "confirm" function?

2001-01-14 Thread Toby Butzon
> Ok, I am trying to add a "yes"/"no" dialog for a delete operation and I was > attempting this via the javascript "confirm" function, but no matter if I > click yes or no, the php code block still executes. I tried this way: It'll work... > > if(!confirm("Are you sure you wish to delete this s

Re: [PHP-DB] selecting values from column without repeating

2001-01-18 Thread Toby Butzon
I've done this before; some databases allow for a UNIQUE specifier in the query (see your documentation). Alternatively (and more resource & time consuming), you can store results in a regular PHP array (not a result resource, etc.) and use array_unique (see php.net/array_unique) to create an arra

Re: [PHP-DB] Near-duplicate a row ?

2001-01-22 Thread Toby Butzon
> Or are you going to riducule, saying 'what the hell do you need near-duplicate rows for'? :P what the hell do you need near-duplicate rows for? ;) Actually, I think it can be done with the subselect as you suggested in recent versions of mySQL (actually I'm not sure it's actually out yet...).

Re: [PHP-DB] RESEND - php class to C struct interface possible?

2001-02-05 Thread Toby Butzon
Maybe if you build a PHP module... info available at zend.com --Toby Phil Rhoades wrote: > > Hi all, > > Thought I would try sending this again - didn't get a reply last time - > guess I'll give up if this attempt doesn't get a reply . . > > I've just subscribed and haven't even got any mail