Tough one?

From: Date: Wed, 21 Feb 2001 18:34:10 +0000
Subject: Tough one?
Groups: php.general 
Request: Send a blank email to php-general+get-41030@lists.php.net to get a copy of this message
I am building an update string on the fly from form fields.I am trying to add a comma between fields but I cant have one after the last field.This is the code that doesnt work.Also I cant have a comma at all in a table with only one updated field. $keys = array_keys($HTTP_POST_VARS); for($x = 2; $x < count($keys); $x++) { $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; Thanks Mike mpeloso@princeton.edu

« previous php.general (#41030) next »