You are here: Re: MySQL inserting into multiple tables linked records « PHP Programming Language « IT news, forums, messages
Re: MySQL inserting into multiple tables linked records

Posted by David Gillen on 06/02/06 15:46

An noise sounding like monomaniac21 said:
> Hi all
>
> Using MySQL can anyone tell me how to most efficiently insert a collumn
> in 'table1' retrieve the id from this record and insert mutliple
> records into 'table2' with a collumn for the id in 'table1' which links
> the two recordsets
>
$id = mysql_insert_id();
From the manual: Retrieves the ID generated for an AUTO_INCREMENT column by
the previous INSERT query.

D.
--

/(bb|[^b]{2})/
Trees with square roots don't have very natural logs.
What's the difference between ignorance and apathy? Who knows? Who cares?

 

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

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