Re: Temporary table name
| From: | Rosen | Date: | Sat, 17 Jul 2004 00:24:55 +0000 |
| Subject: | Re: Temporary table name | ||
| References: | 1 2 3 4 5 6 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-35328@lists.php.net to get a copy of this message | ||
Thanks,
I'll try it.
"John W. Holmes" <holmes072000@charter.net> wrote in message
news:40F87110.7020601@charter.net...
> 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