Re: Temporary table name

From: Date: Sat, 17 Jul 2004 00:21:36 +0000
Subject: Re: Temporary table name
References: 1 2 3 4 5  Groups: php.db 
Request: Send a blank email to php-db+get-35327@lists.php.net to get a copy of this message
Rosen wrote:
No, I don't use it only in range of one script - it must be as "normal" table - several scripts to work with this table and after the last script finish - it delete the table. This may take a time about 20-30 minutes ( until user enter data )
Okay. Use uniqid() to create a string for the table name. The only way you're going to know if it's duplicate is to either catch the error when you create the table or attempt to select something from it or show columns from it... If you're using uniqid(), though, you shouldn't run into duplicates very often. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.db (#35327) next »