RE: [PHP] Re: ARRAY, IF & INSERT

From: Date: Mon, 24 Jun 2002 08:50:36 +0000
Subject: RE: [PHP] Re: ARRAY, IF & INSERT
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-general+get-103549@lists.php.net to get a copy of this message
> the name <> 0 was a sql-query - it will return a ressource which will > enable you to make something like > > $i=0; > while($row = mysql_fetch_assoc($nameless_result){ > > #psuedo-code# > # mysql_query=("insert into table set relativenumber = 'jr$i' where > ID=$row["ID"]"); > } [César L. Aracena] I think you just showed me the smartest way of doing it. After I deal with a deadline here, I will change my hard coded script in order to try it... will let you know. Thanks a lot.

« previous php.general (#103549) next »