Re: [PHP] How to Execute Multiple SQL Updates Using PHP
- From: phpster@xxxxxxxxx ("Bastien Koert")
- Date: Wed, 19 Nov 2008 15:09:02 -0500
On Wed, Nov 19, 2008 at 2:51 PM, Ashley Sheridan
<ash@xxxxxxxxxxxxxxxxxxxx>wrote:
On Wed, 2008-11-19 at 18:51 +0000, Alice Wei wrote:One thing to watch there is that you don't exceed the max query size limit
Hi,that takes multiple update statements without my having to write one "SQL"
I am inquiring on this list to see if it is possible to create a script
statement for each of the updates.
existing information using Flex, and what I am told by my client is that no
I have a scenario of which I create a table of some sort with some
matter how many records there are on the screen, the users should be able to
update any up to all the entries by simply pushing a button. I use Microsoft
SQL, which I think that it does allow multiple update query execution. The
problem is that I might have to come up with some method to accept all the
"POST" variables the user provides into the script.
might use, or whether or not it is possible I can create a script that
Could anyone please give me some guidance on what kind of function I
accepts as many "POST" variables as the users POST?
When I'm stuck on queries I always fall back to see how phpMyAdmin would
Thanks a lot for your help.
Alice
_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG
treat it. Do a dummy run in there by updating a few rows of information
at once, and then see what the SQL it produces looks like. You can
perform multiple queries by using semicolons. Bear in mind that the
queries are still treated as separate, so you may want to do them as a
transaction if you need to fall back in-case of a problem.
Ash
www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(which looks to be about 64K in size) for the sql string
--
Bastien
Cat, the other other white meat
- References:
- Re: [PHP] How to Execute Multiple SQL Updates Using PHP
- From: Ashley Sheridan
- Re: [PHP] How to Execute Multiple SQL Updates Using PHP
- Prev by Date: Re: [PHP] Invalid Arguements
- Next by Date: RE: [PHP] Re: anchor name on URL
- Previous by thread: Re: [PHP] How to Execute Multiple SQL Updates Using PHP
- Next by thread: Re: How to Execute Multiple SQL Updates Using PHP
- Index(es):
Relevant Pages
|