RE: [PHP] Updating Multiple rows with Combo Box!

From: Date: Mon, 22 Aug 2005 13:27:14 +0000
Subject: RE: [PHP] Updating Multiple rows with Combo Box!
Groups: php.general 
Request: Send a blank email to php-general+get-221081@lists.php.net to get a copy of this message
[snip] <input type="hidden" name="thisID" value="<?php echo $row_tjContactFormData['ID']; ?>"> <SELECT name="hired"> <option value="YES" <?php if($row_tjContactFormData['hired']=="YES") { echo "Selected"; } ?>>YES</option> <option value="NO" <?php if($row_tjContactFormData['hired']=="NO") { echo "Selected"; } ?>>NO</option> <option value="NULL" <?php if($row_tjContactFormData['hired']==NULL) { echo "Selected"; } ?>>On Hold</option> </SELECT> But none of my Queries are working. What I want to do is, when the form is submitted, it should just simply update the Œhired¹ field with whatever value has been selected for that row in the Combo Box. [/snip] Can you post the query you are using?

« previous php.general (#221081) next »