updating values in a while statement

From: Date: Tue, 03 Apr 2001 04:42:26 +0000
Subject: updating values in a while statement
Groups: php.general 
Request: Send a blank email to php-general+get-46757@lists.php.net to get a copy of this message
Hiya i've got a script that basically draws values from a db and will display them, as i have multiple records in there and want to display them all i'm using a while ( ($myrow = mysql_fetch_array($result) ) ) statement this is all good as far as it will display them all how ever when i to be able to update the fields as well as display them .. sounds easy to do i know .. but for some reason my id value gets sent to the server as "id=++" can some one offer any suggestions as to why this is as when i view the source it lists the vaules as 1 2 3 etc. Thanks Peter Houchin peterh@sunrentals.com.au ========================================================= _____ __ /\ /_/_/_\ / |_/ \ /_/_/_ __ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/ \_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/ v ________ ________________________________________ /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ ______ __ __ /_/ ____ __ ______ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\ /_/ /_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/ \_\/_/_/_/ /_/ \/_/ /_/ /_/ \_\/_/_/_//_/_/_/ ========================================================= Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 ************* We rent the dot in .COM! **************

« previous php.general (#46757) next »