Bluehost.com Web Hosting $6.95

RE: [PHP] php temp table question (for mysql)

This is a discussion on RE: [PHP] php temp table question (for mysql) within the PHP General forums, part of the PHP Programming Forums category; On Larry Brown wrote: --------------------- Does anyone know whether the use of persistent connections with php will allow a temp table ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-27-2003
Pablo Gosse
 
Posts: n/a
Default RE: [PHP] php temp table question (for mysql)

On Larry Brown wrote:
---------------------
Does anyone know whether the use of persistent connections with php will
allow a temp table created by a script to linger around and cause a
problem
with the next execution of the script when it tries to create the temp
table
again? Also if it does present a problem with the next script execution
trying to create the temp table again, if I drop the temp table at the
end
of the script will I still have problems if the script is run by two
client
in tandem? For instance two people connect, both hit the script at
about
the same time. One script creates the temp table and before it can drop
the
table the second script tries to create the table. Will it see the
table
created by the other script? Again the use of persistent connections
would
be a the heart of this I would think.
---------------------

Perhapds you could add a check at the beginning of the script to see if
the table exists, and if the table does not exist then you create it.
If it does exist, you use the existing table.

Cheers,
Pablo

-----Original Message-----
From: Larry Brown [mailto:larry.brown@dimensionnetworks.com]
Sent: Monday, October 27, 2003 1:24 PM
To: PHP List
Subject: [php] php temp table question (for mysql)



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:19 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0