You are here: Re: inserting data into multiple tables at the same time « PHP Language « IT news, forums, messages
Re: inserting data into multiple tables at the same time

Posted by Tyno Gendo on 04/07/07 19:57

Michael Daly wrote:
> Mr. Newt wrote:
>
>>> Obviously replace with real statements and put your error checking in.
>
> Trying to do multiple updates without checking for errors on each one
> individually is, IMHO, sloppy programming. Doing it as a transaction
> with commit/rollback is advisable.

Agreed, transactions is the best way to go. So long as your database
supports them, worth reading up on them if it does, however I was just
going with what you were currently trying to do :)

I agree with Michael though, do go for transactions if you do want the
multiple table updates, if they are available.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация