Re: update more "same" fields at the same time

From: Date: Wed, 15 Jan 2003 10:28:48 +0000
Subject: Re: update more "same" fields at the same time
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-131667@lists.php.net to get a copy of this message
"Chris Hayes" <chayes@antenna.nl> wrote in message news:5.1.0.14.0.20030115103551.01f79e20@pop4.antenna.nl... > for [each $key, $value in $_POST] > {if (! strpos('field',$key)==false) > { $key=explode('__',$key); > $ID=$key[1]; > mysql_query(UPDATE mytable SET WHERE ID=$ID) > } > } i cant get this code to work. does anybody have the working code.. tnx

« previous php.general (#131667) next »